Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » system facilities » currentTime
next | previous | forward | backward | up | index | toc

currentTime -- get the current time

Description

i1 : currentTime()

o1 = 1747316581

We can compute, roughly, how many years ago the epoch began as follows.

i2 : currentTime() /( (365 + 97./400) * 24 * 60 * 60 )

o2 = 55.3702582239248

o2 : RR (of precision 53)

We can also compute how many months account for the fractional part of that number.

i3 : 12 * (oo - floor oo)

o3 = 4.443098687097603

o3 : RR (of precision 53)

Compare that to the current date, available from a standard Unix command.

i4 : run "date"
Thu May 15 13:43:01 UTC 2025

o4 = 0

For the programmer

The object currentTime is a compiled function.


The source of this document is in Macaulay2Doc/ov_system.m2:1849:0.