Branch: Tag:

2003-03-10

2003-03-10 17:39:47 by Henrik Grubbström (Grubba) <grubba@grubba.org>

No imports.

Rev: lib/modules/Calendar.pmod/Stardate.pmod:1.9

4:      #pike __REAL_VERSION__    - import "."; + inherit .TimeRanges;    - inherit TimeRanges; -  +    static constant TNGSTARPERJULIAN=1000.0/365.2425;   static constant TNGSTARPERSECOND=TNGSTARPERJULIAN/86400;   static constant TNG0JULIAN=2569518.5;
139:    return ((int)(t/TNGSTARPERJULIAN))+TNG0JULIAN;    }    -  TimeRange add(int n,void|this_program step) +  static TimeRange _add(int n,void|this_program step)    {    float x;    if (!step)
224:    return Tick("stardate",rules,t,to->t-t);    }    -  array _compare(TimeRange with) +  array(int(-1..1)) _compare(TimeRange with)    {    float b1=t;    float e1=t+len;
239:       int __hash() { return (int)t; }    -  cTick set_ruleset(Ruleset r) +  TimeRange set_ruleset(.Ruleset r)    {    return Tick("stardate",r,t,len);    }    -  string _sprintf(int t) +  string _sprintf(int t, mapping m)    {    switch (t)    {
306:   // global convinience functions   //------------------------------------------------------------------------    - //! method TimeofDay now() + //! method Time.TimeofDay now()   //! Give the zero-length time period of the   //! current time.    - TimeofDay now() + .Time.TimeofDay now()   {    return Tick();   }