Type:Date
From semantic-mediawiki.org
This somewhat experimental datatype parses dates and date-times in various formats. It internally stores the date as the number of seconds since 1970 and exports dates in RDF in the international standard ISO8601 YYYY-MM-DDTHH:MM:SS format.
Contents |
Recognized entry formats
We recommend you use the unambiguous international standard ISO8601 YYYY-MM-DDTHH:MM:SS format when entering values for date attributes. However, all the underlying power of the PHP strtotime() function is available, including dates such as "next Thursday". Because many date values are ambiguous, check the factbox to see what it displays for dates you enter.
Display format
Dates in query results and the factbox display in the date format for the wiki's locale.
Date Issues
Type:Date does not respect the user's date and time preferences (bug 9620), and you cannot control the display formatting (enhancement bug 11853).
Type:Date accepts timezone but does not remember it, locale-specific date formats (e.g. mm/dd/yy versus dd/mm/yy) are ambiguous and their parsing may depend on PHP settings.
See improving date type.
Date ranges
In SMW 1.2, the date range is only from 1901-12-14 to 2038-1-19. This limitation comes from PHP; tthe timestamp is a 32-bit signed number, so the minimum date-time is 2^31 seconds before 1 Jan 1970, 01:00:00 and the maximum 2^31 seconds after.
Thus this type is unsuitable for many historic dates! See also wikipedia:POSIX time, wikipedia:Year 2038 problem.
This type is among the standard datatypes of this wiki.

