Time Specifications

Foswiki recognises the following formats for date/time strings. For all strings the time is optional.

31 Dec 2001 - 23:59

2001/12/31 23:59:59

2001.12.31.23.59.59

2001/12/31 23:59

2001.12.31.23.59

2001-12-31T23:59:59 - ISO 8601 format

ISO dates may have a timezone specifier, either Z or a signed difference
in hh:mm format. For example:

2001-12-31T23:59:59+01:00

2001-12-31T23:59Z

Time Intervals

Some features of Foswiki, 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).

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. 1999/2006, it will be interpreted as starting at January 1st 1999, at zero hours zero minutes zero seconds. Similarly for the end of the range; 2006 will be interpreted as the last second of 2006.

If only one date is specified (e.g. the interval string is 1999) it will be treated as if the same date were the start and the end i.e. 1999-1999. Thus 1999 is interpreted as the whole of the year 1999.

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 2003-12-12/14 means 12th Dec 2003 00:00 to 14th Dec 2003 23:59:59. However this shorthand is not supported by Foswiki and must be written as 2003-12-12/2003-12-14