Line: 1 to 1 | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Changed: | |||||||||||||||||
< < | Time SpecificationsTWiki recognises the following formats for date/time strings. For all strings the time is optional.
| ||||||||||||||||
> > | Time Specifications | ||||||||||||||||
Added: | |||||||||||||||||
> > | TWiki recognizes the following formats for date/time strings. For all strings the time is optional.
ISO dates may have a timezone specifier, either Z (for GMT) or a signed difference in hh:mm format. Examples:
| ||||||||||||||||
Time IntervalsSome features of TWiki, such as searches, permit the specification of time intervals. A time interval is a period of time, such as "1337 to 1451" (the Hundred Years War) or "9th February 2005 to 26th March 2005" (the Christian season of Lent). | |||||||||||||||||
Changed: | |||||||||||||||||
< < | The recognised format is a restricted interpretation of the ISO standard 8601![]() | ||||||||||||||||
> > | The recognized format is a restricted interpretation of the ISO standard 8601![]() | ||||||||||||||||
A string is accepted as a valid time interval string if it conforms to the following grammar: | |||||||||||||||||
Line: 51 to 56 | |||||||||||||||||
| |||||||||||||||||
Changed: | |||||||||||||||||
< < |
Further examples can be seen here | ||||||||||||||||
> > |
| ||||||||||||||||
Limitations | |||||||||||||||||
Changed: | |||||||||||||||||
< < | If you are entering a date at both ends of the time interval string, the end date must include all leading fields, even if these are the same as in the start date. This limitation forms a proper restriction to the ISO8601 standard. i.e. ISO8601 specifies that 2003-12-12/14 means 12th Dec 2003 00:00 to 14th Dec 2003 23:59:59. However this shorthand is not supported by TWiki and must be written as 2003-12-12/2003-12-14 | ||||||||||||||||
> > | If you are entering a date at both ends of the time interval string, the end date must include all leading fields, even if these are the same as in the start date. This limitation forms a proper restriction to the ISO8601 standard. i.e. ISO 8601 specifies that 2003-12-12/14 means 12th Dec 2003 00:00 to 14th Dec 2003 23:59:59. However this shorthand is not supported by TWiki and must be written as 2003-12-12/2003-12-14 .
Related topics: QuerySearch, TWikiScripts, VarGMTIME2, VarSEARCH, UserDocumentationCategory, AdminDocumentationCategory
-- Contributors: TWiki:Main/CrawfordCurrie |
Line: 1 to 1 | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Added: | |||||||||||||||||||||||||
> > | Time SpecificationsTWiki recognises the following formats for date/time strings. For all strings the time is optional.
Time IntervalsSome features of TWiki, such as searches, permit the specification of time intervals. A time interval is a period of time, such as "1337 to 1451" (the Hundred Years War) or "9th February 2005 to 26th March 2005" (the Christian season of Lent).
The recognised format is a restricted interpretation of the ISO standard 8601 A string is accepted as a valid time interval string if it conforms to the following grammar:
interval ::= date | date '/' date | 'P' duration '/' date | date '/' 'P' duration ; date ::= year ('-' month ('-' day ('T' hour (':' minute (':' second))))) | '$today' | '$now' ; duration ::= NUM unit | duration NUM unit ; unit ::= 'y' | 'm' | 'w' | 'd' | 'h' | 'M' | 'S' year, month, day, hour, minute, second ::= NUM An incompletely specified date will be completed by including as much time as possible.
For example, if the start of a date range is specified by just a year, e.g.
If only one date is specified (e.g. the interval string is
Further examples can be seen here Limitations
If you are entering a date at both ends of the time interval string, the end date must include all leading fields, even if these are the same as in the start date. This limitation forms a proper restriction to the ISO8601 standard. i.e. ISO8601 specifies that |