Changes between Version 1 and Version 2 of TimeUtils


Ignore:
Timestamp:
2010-02-26 20:21:32 (15 years ago)
Author:
javier_guerra
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TimeUtils

    v1 v2  
    1111 
    1212 
    13 '''`timeutils.lastmidnight ([time])`::''' 
     13'''`timeutils.lastmidnight ([time])`''' 
    1414  Returns the timestamp of the last midnight equal or preceding the given `time`.  If no `time` is given, assumes current time. 
    1515 
    16 '''`timeutils.dayseconds ([time])`''':: 
     16'''`timeutils.dayseconds ([time])`''' 
    1717  Returns the number of seconds since the last midnight to the given `time`.  If no `time` is given, assumes current time. 
    1818 
    19 '''`timeutils.localtoUTC ([time] [, timezone])`''':: 
     19'''`timeutils.localtoUTC ([time] [, timezone])`''' 
    2020  Returns the 'date table' (same as returned by `os.date('*t', time)`) of the UTC time corresponding to the given `time`.  If no `time` is given, assumes current time.  If no `timezone` is given, assumes Vera's configured timezone. 
    2121 
    22 '''`timeutils.degrees (x [, ...])`''':: 
     22'''`timeutils.degrees (x [, ...])`''' 
    2323  Transforms one or more numbers expressing an angles in degrees into strings with degrees, minutes and seconds.  For example: 
    2424{{{ 
     
    2727}}} 
    2828 
    29 '''`timeutils.sun_position ([time] [, place])`''':: 
     29'''`timeutils.sun_position ([time] [, place])`''' 
    3030  Returns sun's altitude and azimuth, in degrees, for the given `time` and `place`.  If no `time` is given, assumes current time.  The `place` parameter, if given, must be a table with `latitude`, `longitude` and `timezone` fields.  If no `place` is given, uses the global `luup` table, which should have those fields. 
    3131 
    32 '''`timeutils.is_dark ([ime] [, place])`''':: 
     32'''`timeutils.is_dark ([time] [, place])`''' 
    3333  Returns a boolean indicating if the sun is below the horizon.