SADI::Data::DateTime - A primitive SADI data type for dates/times
use SADI::Data::DateTime; # create a DateTime my $data = SADI::Data::DateTime->new (value => '1994-11-05T08:15:30-05:00'); my $data = SADI::Data::DateTime->new ('1994-11-05T08:15:30-05:00');
An object representing a DateTime, a SADI primitive data type.
The value of this object is stored internally as a string, but upon setting it, the validity is checked. The value should follow the W3C profile of the ISO-8601 specification for specifying dates and times. For example:
1994-11-05T08:15:30-05:00
corresponds to November 5, 1994, 8:15:30 am, US Eastern Standard Time, and
1994-11-05T13:15:30Z
corresponds to the same instant.
Edward Kawas (edward.kawas [at] gmail [dot] com) Martin Senger (martin.senger [at] gmail [dot] com)
Details are in SADI::Base. Here just a list of them (additionally to the attributes from the parent classes)
A value of this datatype. Must be a string in a particular format. Defaults to time when object is initialized.
To install SADI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SADI
CPAN shell
perl -MCPAN -e shell install SADI
For more information on module installation, please visit the detailed CPAN module installation guide.