logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

NetSDS::Util::DateTime - common date/time processing routines

Author

       Valentyn Solomko <val@pere.org.ua>

       Michael Bochkaryov <misha@rattler.kiev.ua>

perl v5.36.0                                       2022-11-20                        NetSDS::Util::DateTime(3pm)

Bugs

       Unknown yet

Description

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

Examples

       None yet

Exported Functions

date_now_array([TIME])
           Returns array of date items for given date.  If source date is not set current date used.

       date_now([TIME])
           Return [given] date as string.

               2001-12-23 14:39:53

       date_now_iso8601([TIME])
           Return date as ISO 8601 string.

               20011223T14:39:53Z

           <http://en.wikipedia.org/wiki/ISO_8601> <http://www.w3.org/TR/NOTE-datetime>

       date_strip(DATE)
           Trim miliseconds from date.

       date_date(DATE)
           Trim time part from date.

       date_time(DATE)
           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([INCREMENT,[TIME]])
           Return date incremented with given number of seconds.

       date_inc_string([INCREMENT,[TIME]])
           Return string representation of date incremented with given number of seconds.

Name

       NetSDS::Util::DateTime - common date/time processing routines

See Also

       Date::Parse, Date::Format

Synopsis

               use NetSDS::Util::DateTime;

               print "Current date: " . date_now();

Todo

       Import stuff from Wono project

See Also