SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from Fedora 28 perl-DateTime-Format-MySQL-0.06-6.fc28.noarch.rpm

DateTime::Format::MySQL

Section: User Contributed Perl Documentation (3)
Updated: 2018-02-08
Index 

NAME

DateTime::Format::MySQL - Parse and format MySQL dates and times 

SYNOPSIS

  use DateTime::Format::MySQL;  my $dt = DateTime::Format::MySQL->parse_datetime( '2003-01-16 23:12:01' );  # 2003-01-16 23:12:01  DateTime::Format::MySQL->format_datetime($dt);
 

DESCRIPTION

This module understands the formats used by MySQL for its DATE,DATETIME, TIME, and TIMESTAMP data types. It can be used to parsethese formats in order to create DateTime objects, and it can take aDateTime object and produce a string representing it in the MySQLformat. 

METHODS

This class offers the following methods. All of the parsing methodsset the returned DateTime object's time zone to the floating timezone, because MySQL does not provide time zone information.
*
parse_datetime($string)
*
parse_date($string)
*
parse_timestamp($string)

Given a value of the appropriate type, this method will return a new"DateTime" object. The time zone for this object will always be thefloating time zone, because by MySQL stores the local datetime, notUTC.

If given an improperly formatted string, this method may die.

*
format_date($datetime)
*
format_time($datetime)
*
format_datetime($datetime)

Given a "DateTime" object, this methods returns an appropriatelyformatted string.

 

SUPPORT

Support for this module is provided via the datetimeAATTperl.org emaillist. See http://lists.perl.org/ for more details. 

AUTHOR

Dave Rolsky <autarchAATTurth.org> 

COPYRIGHT

Copyright (c) 2003-2014 David Rolsky. All rights reserved. This programis free software; you can redistribute it and/or modify it under thesame terms as Perl itself.

The full text of the license can be found in the LICENSE file includedwith this module. 

SEE ALSO

datetimeAATTperl.org mailing list

http://datetime.perl.org/


 

Index

NAME
SYNOPSIS
DESCRIPTION
METHODS
SUPPORT
AUTHOR
COPYRIGHT
SEE ALSO

This document was created byman2html,using the manual pages.