pike.git / lib / modules / Calendar.pmod / Time.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Time.pmod:1:   //!   //! module Calendar   //! submodule Time   //!   //! Base for time of day in calendars, ie   //! calendars with hours, minutes, seconds   //!   //! This module can't be used by itself, but   //! is inherited by other modules (<ref>ISO</ref> by <ref>YMD</ref>,   //! for instance). + //! + //! inherits TimeRanges      #pike __REAL_VERSION__      // #pragma strict_types      //- these classes majorly works on seconds   //- an hour is 3600 seconds, a minute is 60 seconds      inherit Calendar.TimeRanges:TimeRanges;   
pike.git/lib/modules/Calendar.pmod/Time.pmod:666:    {    if (ls==CALUNKNOWN) make_local();    return ls%60;    }       float fraction_no()    {    return 0.0;    }    - //! function mapping datetime() + //! method mapping datetime()   //! This gives back a mapping with the relevant   //! time information (representing the start of the period);   //! <pre>   //! ([ "year": int // year number (2000 AD=2000, 1 BC==0)   //! "month": int(1..) // month of year   //! "day": int(1..) // day of month   //! "yearday": int(1..) // day of year   //! "week": int(1..) // week of year   //! "week_day": int(1..) // day of week (depending on calendar)   //!
pike.git/lib/modules/Calendar.pmod/Time.pmod:1584:   //!   //! It contains everything that is possible to do with a   //! <ref>Second</ref>, and also some methods of grabbing   //! the time period with higher resolution.   //!   //! note:   //! Internally, the fraction time period is measured in   //! nanoseconds. A shorter or more precise time period then   //! in nanoseconds is not possible within the current Fraction class.   //! - //! inherits TimeofDay + //! inherits Second   //------------------------------------------------------------------------      function(mixed...:cFraction) Fraction=cFraction;   class cFraction   {    inherit cSecond;       constant is_timeofday_f=1;    constant is_fraction=1;