File modification time: Difference between revisions

→‎{{header|Julia}}: A new entry for Julia
mNo edit summary
(→‎{{header|Julia}}: A new entry for Julia)
Line 636:
var last_modified = file.lastModifiedDate;</lang>
 
=={{header|Julia}}==
<lang Julia>
fname = "fool.txt"
tfmt = "%FT%T%z"
 
println("The modification time of ", fname, " is ")
println(" ", strftime(tfmt, mtime(fname)))
 
println("\nTouch this file.")
touch(fname)
 
println("The modification time of ", fname, " is now ")
println(" ", strftime(tfmt, mtime(fname)))
</lang>
 
{{out}}
<pre>
The modification time of fool.txt is
2015-04-01T00:00:00-0500
 
Touch this file.
The modification time of fool.txt is now
2015-04-13T14:26:26-0500
</pre>
 
=={{header|Lasso}}==