NeoWebScript Clock Demo
Examples of December 22nd, 2022
12/22/2022 in seconds is
html [clock scan 12/22/2022]
1671688800 in time is html [clock format 1671688800]
Honey, it's only
html [expr (1671688800 - [clock seconds]) / 86400]
more days until our 29th wedding anniversary!
Examples of Current System Time
Current system time in seconds is
html [clock seconds]
Current system time formatted is
html [clock format [clock seconds]]
Current system time formatted by the default time format
html [clock format [clock seconds] -format $webenv(NEO_TIME_FORMAT)]
Examples of last modification of this page
Time the page was last modified in seconds is
html $webenv(NEO_LAST_MODIFIED)
Date the page was last modified
html [clock format $webenv(NEO_LAST_MODIFIED)]
And in an RFC-compliant manner:
html [clock format $webenv(NEO_LAST_MODIFIED) -format $webenv(NEO_TIME_FORMAT)]
And that was
html [expr ([clock seconds] - $webenv(NEO_LAST_MODIFIED)) / 86400]
days ago.