SYNOPSIS

        use NetSDS::Util::DateTime;

        print "Current date: " . date_now();

DESCRIPTION

This package provides set of routines for date and time processing.

EXPORTED FUNCTIONS

date_now_array([\s-1TIME\s0])

Returns array of date items for given date. If source date is not set current date used.

date_now([\s-1TIME\s0])

Return [given] date as string. 2001-12-23 14:39:53

date_now_iso8601([\s-1TIME\s0])

Return date as \s-1ISO\s0 8601 string. 20011223T14:39:53Z <http://en.wikipedia.org/wiki/ISO_8601> http://www.w3.org/TR/NOTE-datetime <http://www.w3.org/TR/NOTE-datetime>

date_strip(\s-1DATE\s0)

Trim miliseconds from date.

date_date(\s-1DATE\s0)

Trim time part from date.

date_time(\s-1DATE\s0)

Trim date part from date.

time_from_string($string)

Return parsed date/time structure.

date_from_string($string)

Return date from string representation.

date_inc([\s-1INCREMENT\s0, [\s-1TIME\s0]])

Return date incremented with given number of seconds.

date_inc_string([\s-1INCREMENT\s0, [\s-1TIME\s0]])

Return string representation of date incremented with given number of seconds.

EXAMPLES

None yet

BUGS

Unknown yet

RELATED TO NetSDS::Util::DateTime…

Date::Parse, Date::Format

TODO

Import stuff from Wono project

AUTHOR

Valentyn Solomko <[email protected]>

Michael Bochkaryov <[email protected]>