NAME
DateTime::Format::JSON::MicrosoftDateFormat - Parse and format JSON MicrosoftDateFormat datetime strings
SYNOPSIS
use DateTime::Format::JSON::MicrosoftDateFormat;
my $formatter = DateTime::Format::JSON::MicrosoftDateFormat->new;
my $dt = $formatter->parse_datetime("/Date(1392089278000-0600)/"); #2014-02-10T21:27:58Z
my $dt = $formatter->parse_datetime("/Date(1392067678000)/"); #2014-02-10T21:27:58Z
say $formatter->format_datetime($dt); #/Date(1392067678000)/
DESCRIPTION
This module understands the JSON MicrosoftDateFormat date/time format.
USAGE
import
Installs the TO_JSON method into the DateTime namespace when requested
use DateTime::Format::JSON::MicrosoftDateFormat (to_json => 1);
use DateTime::Format::JSON::MicrosoftDateFormat; #not installed
CONSTRUCTOR
new
METHODS
parse_datetime
format_datetime
Note: No support for offset in output as it is not supported very well in the Microsoft stack
BUGS
Please log on RT and send an email to the author.
SUPPORT
DavisNetworks.com supports all Perl applications including this package.
AUTHOR
Michael R. Davis
CPAN ID: MRDVT
Satellite Tracking of People, LLC
mdavis@stopllc.com
http://www.stopllc.com/
COPYRIGHT
This program is free software licensed under the...
The General Public License (GPL)
Version 2, June 1991
The full text of the license can be found in the LICENSE file included with this module.