Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 361 Bytes

1450-date-timestamp.markdown

File metadata and controls

19 lines (12 loc) · 361 Bytes

TIMESTAMP

s = TIMESTAMP (filename)

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".

Example

' Create a file open "timetest.txt" for output as #1 print #1, 1 close #1 ' Get time stamp print timestamp("timetest.txt") ' Output: 2023-09-03 11:36 AM 
close