Extracted from Pike v7.4 release 117 at 2005-08-23.
pike.ida.liu.se
[Top]
predef::
Calendar
Calendar.Stardate

Method Calendar.Stardate.create()


Method create

void Calendar.Stardate.(mixed ...)
void Calendar.Stardate.(int|float date)
void Calendar.Stardate.()

Description

Apart from the standard creation methods (julian day, etc), you can create a stardate from the stardate number. The length of the period will then be zero.

You can also omit any arguments to create now.

known bugs: Since the precision is limited to the float type of pike you can get non-precise results:

    > Calendar.Second(Calendar.Stardate.Day(Calendar.Year()));
    Result: Second(Fri 31 Dec 1999 23:59:18 CET - Sun 31 Dec 2000 23:59:18 CET)