|Num||The number is treated as a time in seconds since the unix epoch|
|DateTime||The duration represented as a DateTime object.|
Non-expanded date and time string representations.
20120113 => 2012-01-13 170500Z => 17:05:00Z 20120113T170500Z => 2012-01-13T17:05:00Z
Representations of UTC time zone (only an offset of zero is supported)
17:05:00+00:00 => 17:05:00Z 17:05:00+00 => 17:05:00Z 170500+0000 => 17:05:00Z
2012-01-13T17:05:00+00:00 => 2012-01-13T17:05:00Z 2012-01-13T17:05:00+00 => 2012-01-13T17:05:00Z 20120113T170500+0000 => 2012-01-13T17:05:00Z
Also supports non-standards mixing of expanded and non-expanded representations
2012-01-13T170500Z => 2012-01-13T17:05:00Z 20120113T17:05:00Z => 2012-01-13T17:05:00Z
In addition, there are coercions from these string types to DateTime.
An ISO8601 date duration string. E.g. P01Y01M01D
An ISO8601 time duration string. E.g. PT01H01M01S
An ISO8601 combined date and time duration string. E.g. P01Y01M01DT01H01M01S
The duration types will coerce from:
The duration types will coerce to:
Num The number is treated as a time in seconds DateTime::Duration The duration represented as a DateTime::Duration object.
Duration A DateTime::Duration, i.e. the Duration constraint from MooseX::Types::DateTime.
If provided, the number of seconds in time types is represented to microsecond accuracy. A full stop character is used as the decimal separator, which is allowed, but deprecated in preference to the comma character in ISO 8601:2004.
Probably full of them, patches are very welcome.
Specifically missing features:
o No timezone support - all times are assumed UTC o No week number type o Basic format, which lacks separator characters, is not supported for reading or writing. o Tests are rubbish.
* MooseX::Types::DateTime * DateTime * DateTime::Duration * DateTime::Format::ISO8601 * DateTime::Format::Duration * <http://en.wikipedia.org/wiki/ISO_8601> * <http://dotat.at/tmp/ISO_8601-2004_E.pdf>
The development of this code was sponsored by my employer <http://www.state51.co.uk>.
o Tomas Doran (t0m) <email@example.com> o Dave Lambley <firstname.lastname@example.org>
o Karen Etheridge <email@example.com> o Dave Lambley <firstname.lastname@example.org> o zebardy <email@example.com> o Aaron Moses <firstname.lastname@example.org> o Gregory Oschwald <email@example.com>
This software is copyright (c) 2009 by Tomas Doran.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
|perl v5.20.3||MOOSEX::TYPES::ISO8601 (3)||2015-08-16|