Edward Kawas > OWL2Perl-1.00 > OWL::Data::DateTime

Download:
OWL2Perl-1.00.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.04   Source  

NAME ^

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

SYNOPSIS ^

 use OWL::Data::DateTime;

 # create a DateTime
 my $data = OWL::Data::DateTime->new (value => '1994-11-05T08:15:30-05:00');
 my $data = OWL::Data::DateTime->new ('1994-11-05T08:15:30-05:00');

DESCRIPTION ^

An object representing a DateTime, a owl 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 OWL::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: