mysql-specific extension to Time::Piece

This commit is contained in:
espie 2006-11-14 19:07:17 +00:00
parent 7fe1c1742e
commit 0aa5c715b1
4 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/11/14 19:07:17 espie Exp $
COMMENT= "mysql representations for Time::Piece objects"
MODULES= cpan
DISTNAME= Time-Piece-MySQL-0.05
CATEGORIES= devel
# Artistic License
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
RUN_DEPENDS= ::devel/p5-Time-Piece
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (Time-Piece-MySQL-0.05.tar.gz) = 59eb18c952f61cf2481c38c0f43c37c8
RMD160 (Time-Piece-MySQL-0.05.tar.gz) = 446d0a989b0c775f324beff26aa4b5467b464b3a
SHA1 (Time-Piece-MySQL-0.05.tar.gz) = 72f8c5effd3e404d03cbf0f97532b77f15c71ff5
SIZE (Time-Piece-MySQL-0.05.tar.gz) = 3701

View File

@ -0,0 +1,13 @@
Using this module in addition to "Time::Piece" adds a
few MySQL-specific date-time methods to "Time::Piece" objects.
OBJECT METHODS
mysql_date / mysql_time / mysql_datetime / mysql_timestamp
Returns the date and/or time in a format suitable for use by MySQL.
CONSTRUCTORS
from_mysql_date / from_mysql_datetime / from_mysql_timestamp
Given a date, datetime, or timestamp value as returned from MySQL, these
constructors return a new Time::Piece object. If the value is NULL, they
will retrun undef.

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/14 19:07:17 espie Exp $
${P5SITE}/Time/
${P5SITE}/Time/Piece/
${P5SITE}/Time/Piece/MySQL.pm
@man man/man3p/Time::Piece::MySQL.3p