Extracted from Pike v7.4 release 117 at 2004-11-02.
pike.ida.liu.se
[Top]
predef::
Calendar
Calendar.Stardate

Method Calendar.Stardate.number_of_days()


Method number_of_days

int Calendar.Stardate.number_of_seconds()
int Calendar.Stardate.number_of_days()

Description

This gives back the Gregorian/Earth/ISO number of seconds and number of days, for convinience and conversion to other calendars. string format_long(void|int precision) string format_short(void|int precision) string format_vshort(void|int precision) Format the stardate tick nicely. Precision is the number of decimals. Defaults to 3.

       long    "-322537.312"
       short   "77463.312"  (w/o >100000-component)
       vshort  "7463.312"  (w/o >10000-component)