Podius::Property::Date - scalar component property
my $property = new Podius::Property::Date;
$property->access(20070717);
print $property->as_string;
This module implements component property representing a date.
Modifier: property value to set. undef means unset the value.
Supported formats are:
* 20070513 * "2007-05-13" * "2007/05/13" * "2007.05.13" * "13-05-2007" * "13/05/2007" * "13.05.2007" * "2007-05-13 12:34:45" * "13-05-2007 12:34:45" * 1179048885 (10 digits, unix time for "2007-05-13 12:34:45 IDT") * "today", "yesterday", "tomorrow"
These non-zero padded or space-padded fields are supported too:
* "2007-5-3" * "2007-5-3 8:8:8" * "2007- 5- 3" * "2007- 5- 3 8: 8: 8"
Partial dates (representing some month, some year or no-date rather than some day) are supported too:
* 20070500 * 20070000 * 00000000 or 00000 or 0 or undef (stored as "00000")
The stored value always has 8 digits in normal situations.
For dates before the year 1000, the stored value may have less than 8 digits, but better prepend zeros. The dates before the era (negative) are supported too. In both these cases, only the input forms like [-]YYYMMDD and ``[-]YYY-MM-DD'' are valid.