Skip to content

Commit 99384b1

Browse files
authored
Update 1450-date-timestamp.markdown
1 parent 1b212bc commit 99384b1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed
Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
# TIMESTAMP
22

3-
> TIMESTAMP filename
3+
> s = TIMESTAMP (filename)
44
5-
Returns the file last modified date and time.
5+
Returns the file `filename` last modified date and time as a string. The returned string `s` has the format "YYYY-MM-DD hh:mm AM|PM".
6+
7+
### Example
8+
9+
```
10+
' Create a file
11+
open "timetest.txt" for output as #1
12+
print #1, 1
13+
close #1
14+
15+
' Get time stamp
16+
print timestamp("timetest.txt") ' Output: 2023-09-03 11:36 AM
17+
```
618

719

0 commit comments

Comments
 (0)