File modification time: Difference between revisions

Frink
m (→‎{{header|Elixir}}: removed a </lang>)
(Frink)
Line 599:
c:\windows\system32\kernel32.dll
File last modified: 2016-09-07 05:39 AM
</pre>
 
=={{header|Frink}}==
Frink runs on a Java Virtual Machine (JVM) and can use any of its methods. The underlying code returns the modification time as the number of milliseconds since 1970-01-01 00:00 UTC. The following converts between Frink's human-friendly time systems and the milliseconds since the epoch.
<lang frink>f = newJava["java.io.File", "FileModificationTime.frink"]
f.setLastModified[(#2022-01-01 5:00 AM# - #1970 UTC#) / ms]
println[f.lastModified[] ms + #1970 UTC#]</lang>
{{out}}
<pre>
AD 2022-01-01 AM 05:00:00.000 (Sat) Mountain Standard Time
</pre>
 
490

edits