NetSDS::Util::DateTime(3pm) User Contributed Perl Documentation NetSDS::Util::DateTime(3pm)NAME
NetSDS::Util::DateTime - common date/time processing routines
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([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 <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.
EXAMPLES
None yet
BUGS
Unknown yet
SEE ALSO
Date::Parse, Date::Format
TODO
Import stuff from Wono project
AUTHOR
Valentyn Solomko <val@pere.org.ua>
Michael Bochkaryov <misha@rattler.kiev.ua>
perl v5.12.4 2011-08-27 NetSDS::Util::DateTime(3pm)
Check Out this Related Man Page
NetSDS::Util(3pm) User Contributed Perl Documentation NetSDS::Util(3pm)NAME
NetSDS::Util - supplementary NetSDS packages
SYNOPSIS
use NetSDS::Util::Convert;
use NetSDS::Util::String;
my $trim_str = str_trim(" Some string with leading and trailing ");
DESCRIPTION
"NetSDS::Util" modules contains functions useful for everyday tasks.
NetSDS::Util::Convert - data format conversions
NetSDS::Util::DateTime - processing date and time
NetSDS::Util::File - work with files and catalogs
NetSDS::Util::Spreadsheet - processing spreadsheet files
NetSDS::Util::Misc - miscelaneous routines
NetSDS::Util::String - text and binary strings processing
NetSDS::Util::Struct - data structures conversion
NetSDS::Util::Translit - transliteration
NetSDS::Util::Types - work with data types
BUGS
Unknown yet
SEE ALSO
NetSDS::Util::Convert
NetSDS::Util::DateTime
NetSDS::Util::File
NetSDS::Util::Spreadsheet
NetSDS::Util::Misc
NetSDS::Util::String
NetSDS::Util::Struct,
NetSDS::Util::Translit
NetSDS::Util::Types
TODO
Implement functional tests.
AUTHOR
Valentyn Solomko <pere@pere.org.ua>
Michael Bochkaryov <misha@rattler.kiev.ua>
Yana Kornienko <yana@netstyle.com.ua>
LICENSE
Copyright (C) 2008-2009 Michael Bochkaryov
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
perl v5.12.4 2011-08-27 NetSDS::Util(3pm)