Show the epoch: Difference between revisions
m
→{{header|AppleScript}}: Typo correction.
(Added AppleScript.) |
m (→{{header|AppleScript}}: Typo correction.) |
||
Line 56:
use scripting additions
local
-- Get the date 0 seconds from the Cocoa epoch.
set
-- The way it's rendered in its 'description' is good enough for the current purpose.
set
-- Get the date 0 seconds from the Unix epoch and format it in the same way.
set UnixEpoch to (do shell script "date -ur 0 '+%F %T %z'")
return "Cocoa epoch: " &
{{output}}
|