pike.hubbe.net

[Top]
Calendar
Calendar.Stardate
previousCalendar.Stardate Calendar.Stardate.now()next

Method Calendar.Stardate.create()


Method create

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

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)
    


Extracted from Pike v7.3 release 11 at 2001-11-03.