next | previous | forward | backward | up | top | index | toc | Macaulay2 web site

currentTime -- get the current time

Synopsis

Description

i1 : currentTime()

o1 = 1297123916

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

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

o2 = 41.1042205850552

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 = 1.25064702066285

o3 : RR (of precision 53)

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

i4 : run "date"
Tue Feb  8 00:11:56 UTC 2011

o4 = 0