Date format: Difference between revisions

Updated to work with Nim 1.4.
(→‎{{header|AppleScript}}: Re-restored the again-deleted non-hack solution, leaving in the non-representative and outdated hack by which it had been replaced for information.)
(Updated to work with Nim 1.4.)
Line 2,272:
<lang Nim>import times
 
var t = getTime().getLocalTimenow()
echo(t.format("yyyy-MM-dd"))
echo(t.format("dddd',' MMMM d',' yyyy"))</lang>
Anonymous user