Branch: Tag:

2003-03-13

2003-03-13 02:18:43 by Martin Nilsson <mani@lysator.liu.se>

No imports. Autodoced.

Rev: lib/modules/Calendar.pmod/Gregorian.pmod:1.8
Rev: lib/modules/Calendar.pmod/ISO.pmod:1.8
Rev: lib/modules/Calendar.pmod/Islamic.pmod:1.8
Rev: lib/modules/Calendar.pmod/Julian.pmod:1.9
Rev: lib/modules/Calendar.pmod/Stardate.pmod:1.10
Rev: lib/modules/Calendar.pmod/Swedish.pmod:1.7
Rev: lib/modules/Calendar.pmod/Time.pmod:1.24
Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.23
Rev: lib/modules/Calendar.pmod/YMD.pike:1.2

16:   //- these classes majorly works on seconds   //- an hour is 3600 seconds, a minute is 60 seconds    - import "."; - inherit TimeRanges:TimeRanges; + inherit .TimeRanges:TimeRanges;      #include "constants.h"   
34:    return 1;   }();    - Rule.Timezone Timezone_UTC=Rule.Timezone(0,"UTC"); // needed for dumping + .Rule.Timezone Timezone_UTC=.Rule.Timezone(0,"UTC"); // needed for dumping      string calendar_name() { return "Time"; }   
83:    switch (args[0])    {    case "timeofday": -  rules=[object(Ruleset)]args[1]; +  rules=[object(.Ruleset)]args[1];    ux=[int]args[2];    len=[int]args[3];    ls=CALUNKNOWN;    return;       case "timeofday_sd": -  rules=[object(Ruleset)]args[1]; +  rules=[object(.Ruleset)]args[1];    ux=[int]args[2];    len=[int]args[3];    ls=[int]args[4];
910:      // --------    -  TimeofDay set_ruleset(Ruleset r) +  TimeofDay set_ruleset(.Ruleset r)    {    return    Second("timeofday",r,ux,len)
1563:    }    else if (args[0]=="timeofday_f")    { -  rules=[object(Ruleset)]args[1]; +  rules=[object(.Ruleset)]args[1];    ux=[int]args[2];    ns=[int]args[3];    len_s=[int]args[4];
1972:   //! Result: Fraction(Fri 2 Jun 2000 16:03:02.323912 UTC)   //! </pre>    - this_program set_timezone(string|Rule.Timezone tz) + this_program set_timezone(string|.Rule.Timezone tz)   {    return set_ruleset(default_rules->set_timezone(tz));   }    - Rule.Timezone timezone() + .Rule.Timezone timezone()   {    return default_rules->timezone;   }    - this_program set_language(string|Rule.Language lang) + this_program set_language(string|.Rule.Language lang)   {    return set_ruleset(default_rules->set_language(lang));   }    - Rule.Language language() + .Rule.Language language()   {    return default_rules->language;   }
1998:   //! <ref>set_ruleset</ref> returns a new calendar object,   //! but with the new ruleset.    - this_program set_ruleset(Ruleset r) + this_program set_ruleset(.Ruleset r)   { - // "this_program" here ceased to work -  object c=object_program(this_object())(); +  this_program c=this_program();    c->default_rules=r;    return c;   }    - Ruleset ruleset() + .Ruleset ruleset()   {    return default_rules;   }