We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b212bc commit 99384b1Copy full SHA for 99384b1
_build/reference/1450-date-timestamp.markdown
@@ -1,7 +1,19 @@
1
# TIMESTAMP
2
3
-> TIMESTAMP filename
+> s = TIMESTAMP (filename)
4
5
-Returns the file last modified date and time.
+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
18
19
0 commit comments