|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/lib/python2.4/site-packages/MySQLdb/ |
Upload File : |
mò
ýÉ<Ac @ s{ d Z d k l Z y d k TWn; e j
o/ y d k TWq\ e j
o d k Tq\ Xn Xd „ Z d „ Z d „ Z d S( s[ times module
This module provides some Date and Time classes for dealing with MySQL data.
( s string_literal( t *c C s t t | ƒ | ƒ S( s- Format a DateTime object as an ISO timestamp.N( t string_literalt format_TIMESTAMPt dt c( R R ( ( t1 /usr/lib/python2.4/site-packages/MySQLdb/times.pyt DateTime2literal s c C s t t | ƒ | ƒ S( s( Format a DateTimeDelta object as a time.N( R t format_TIMER R ( R R ( ( R t DateTimeDelta2literal s c C s¨ | d d j o t | ƒ Sn | d d t | ƒ } t t t d | d | d d !| d d !| d d !| d d !| d d !f ƒ ƒ } y t | Œ SWn d Sn Xd S(
s0 Convert a MySQL TIMESTAMP to a Timestamp object.i t -t 0i i i i
i N( t st DateTime_or_Nonet lent mapt intt filtert Nonet partst Timestamp( R R ( ( R t mysql_timestamp_converter s Q N(
t __doc__t _mysqlR t pytimest ImportErrort mxdatetimest stringtimesR R R ( R R R R ( ( R t ? s