Line: 43 to 43 | ||||||||
---|---|---|---|---|---|---|---|---|
StaticMethod formatTime ($epochSeconds,$formatString,$outputTimeZone) -> $value
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
$formatString supports:
|
Line: 11 to 11 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Added: | ||||||||
> > | Default TWiki format | |||||||
| ||||||||
Added: | ||||||||
> > |
TWiki format without time (defaults to 00:00)
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
|
Line: 5 to 5 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < | StaticMethod parseTime ($szDate) -> $iSecs | |||||||
> > | StaticMethod parseTime ($szDate,$defaultLocal) -> $iSecs | |||||||
Changed: | ||||||||
< < | Convert string date/time to seconds since epoch. | |||||||
> > | Convert string date/time string to seconds since epoch (1970-01-01T00:00:00Z). | |||||||
| ||||||||
Line: 16 to 16 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > | The default timezone is Z, unless $defaultLocal is true in which case the local timezone will be assumed. | |||||||
If the date format was not recognised, will return 0. | ||||||||
Line: 88 to 93 | ||||||||
| ||||||||
Changed: | ||||||||
< < | timezone is optional and not supported yet. | |||||||
> > | timezone is optional. Default is local time. | |||||||
If the format is not recognised, will return empty interval [0,0]. |
Line: 1 to 1 | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Added: | |||||||||||||||||||||||||||||||
> > | Package
Time handling functions.
|
$seconds | secs |
$minutes | mins |
$hours | hours |
$day | date |
$wday | weekday name |
$dow | day number (0 = Sunday) |
$week | week number |
$month | month name |
$mo | month number |
$year | 4-digit year |
$ye | 2-digit year |
$http | ful HTTP header format date/time |
full email format date/time | |
$rcs | full RCS format date/time |
$epoch | seconds since 1st January 1970 |
$szInterval
- time interval string
interval ::= date { $$.start = fillStart($1); $$.end = fillEnd($1); } | date '/' date { $$.start = fillStart($1); $$.end = fillEnd($3); } | 'P' duration '/' date { $$.start = fillEnd($4)-$2; $$.end = fillEnd($4); } | date '/' 'P' duration { $$.start = fillStart($1); $$.end = fillStart($1)+$4; } ;an
interval
may be followed by a timezone specification string (this is not supported yet).
duration
has the form (regular expression):
P(<number><nameOfDuration>)+nameOfDuration may be one of:
date
follows ISO8601 and must include hypens. (any amount of trailing
elements may be omitted and will be filled in differently on the
differents ends of the interval as to include the longest possible
interval):