| |
Methods defined here:
- GetDayOfTheYear(self)
- Return the day of the year (ranging from 1 to 366)
- GetNow(self, unit=None)
- Return present date/time
unit can be set to 'year', 'month', 'day', 'hour', 'minute' or 'seconds'.
set to None, then the present date in string format is returned.
- Print(self)
- Print out state
- SetNow(self, it)
- Compute the datetime corresponding to time index 'it'.
The result is stored in member 'now'.
- __init__(self, axis, pat=<_sre.SRE_Pattern object>)
- Constructor.
axis: an nvAxis object.
pat: a regular expression pattern, which will be used to extract
the starting date and the time units from
nc.variables[tName].units
The latter is, by default assumed to be of the form
<units> since <year>-<month>-<day> HH:MM:SS
|