Jump to content

Show the epoch: Difference between revisions

m
Lingo added
m (Lingo added)
Line 527:
<pre>Thu Jan 01 00:00:00 GMT 1970
</pre>
 
=={{header|Lingo}}==
 
Lingo's date object is not based on an epoch, but instead on runtime date calculations. A new date object is created by specifying "year, month, day", based on gregorian calendar.
 
<lang Lingo>now = the systemDate
put now
-- date( 2018, 3, 21 )
 
babylonianDate = date(-1800,1,1)
 
-- print aprox. year difference between "babylonianDate" and now
put (now-babylonianDate)/365.2425
-- 3818.1355
</lang>
 
=={{header|LiveCode}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.