NAME
Palm::DateTime - Deal with various Palm OS date/time formats
VERSION
This document describes version 1.400 of Palm::DateTime, released March 14, 2015 as part of Palm version 1.400.
DESCRIPTION
Palm::DateTime exports subroutines to convert between various Palm OS date/time formats. All subroutines are exported by default.
Data types:
secs - Seconds since the system epoch
dlptime - Palm OS DlpDateTimeType (raw)
datetime - Palm OS DateTimeType (raw)
palmtime - Decoded date/time (a hashref)
KEY VALUES
second 0-59
minute 0-59
hour 0-23
day 1-31
month 1-12
year 4 digits
SUBROUTINES
datetime_to_palmtime
$palmtime = datetime_to_palmtime($datetime)
Converts Palm OS DateTimeType to a palmtime hashref. In addition to the usual keys, $palmtime
will contain a wday
field.
dlptime_to_palmtime
$palmtime = dlptime_to_palmtime($dlptime)
Converts Palm OS DlpDateTimeType to a palmtime hashref.
dlptime_to_secs
$secs = dlptime_to_secs($dlptime)
Converts a Palm OS DlpDateTimeType to epoch time.
palmtime_to_ascii
$string = palmtime_to_secs(\%palmtime)
Converts a palmtime hashref to a YYYYMMDDhhmmss
string (e.g. 20011116200051
). %palmtime
must contain all standard fields.
palmtime_to_dlptime
$dlptime = palmtime_to_dlptime(\%palmtime)
Converts a palmtime hashref to a Palm OS DlpDateTimeType. %palmtime
must contain all standard fields.
palmtime_to_iso8601
$string = palmtime_to_iso8601(\%palmtime)
Converts a palmtime hashref to a YYYY-MM-DDThh:mm:ssZ
string (e.g. 2001-11-16T20:00:51Z
). %palmtime
must contain all standard fields. GMT timezone ("Z") is assumed.
palmtime_to_secs
$secs = palmtime_to_secs(\%palmtime)
Converts a palmtime hashref to epoch seconds. %palmtime
must contain all standard fields.
secs_to_dlptime
$dlptime = secs_to_dlptime($secs)
Converts epoch time to a Palm OS DlpDateTimeType.
secs_to_palmtime
$palmtime = secs_to_palmtime($secs)
Converts epoch seconds to a palmtime hashref.
CONFIGURATION AND ENVIRONMENT
Palm::DateTime requires no configuration files or environment variables.
INCOMPATIBILITIES
None reported.
BUGS AND LIMITATIONS
No bugs have been reported.
AUTHORS
Alessandro Zummo <a.zummo AT towertech.it>
Currently maintained by Christopher J. Madsen <perl AT cjmweb.net>
Please report any bugs or feature requests to <bug-Palm AT rt.cpan.org>
or through the web interface at http://rt.cpan.org/Public/Bug/Report.html?Queue=Palm.
You can follow or contribute to p5-Palm's development at https://github.com/madsen/p5-Palm.
COPYRIGHT AND LICENSE
This software is copyright (c) 2003 by Andrew Arensburger & Alessandro Zummo.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.