Edward Kawas > SADI-1.10 > SADI::Data::DateTime

Download:
SADI-1.10.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.04   Source  

NAME ^

SADI::Data::DateTime - A primitive SADI data type for dates/times

SYNOPSIS ^

 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');

DESCRIPTION ^

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.

AUTHORS ^

 Edward Kawas (edward.kawas [at] gmail [dot] com)
 Martin Senger (martin.senger [at] gmail [dot] com)

ACCESSIBLE ATTRIBUTES ^

Details are in SADI::Base. Here just a list of them (additionally to the attributes from the parent classes)

value

A value of this datatype. Must be a string in a particular format. Defaults to time when object is initialized.

syntax highlighting: