1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: test_dates.py,v 1.6 2001-08-07 00:24:43 richard Exp $
18+ # $Id: test_dates.py,v 1.7 2001-08-13 23:01:53 richard Exp $
1919
2020import unittest , time
2121
@@ -36,7 +36,7 @@ def testDate(self):
3636 date = Date ("2000-04-17" )
3737 ae (str (date ), '2000-04-17.00:00:00' )
3838 date = Date ("01-25" )
39- y , m , d , x , x , x , x , x , x = time .gmtime ()
39+ y , m , d , x , x , x , x , x , x = time .gmtime (time . time () )
4040 ae (str (date ), '%s-01-25.00:00:00' % y )
4141 date = Date ("2000-04-17.03:45" )
4242 ae (str (date ), '2000-04-17.03:45:00' )
@@ -54,7 +54,7 @@ def testOffset(self):
5454 date = Date ("2000-04-17" , - 5 )
5555 ae (str (date ), '2000-04-17.00:00:00' )
5656 date = Date ("01-25" , - 5 )
57- y , m , d , x , x , x , x , x , x = time .gmtime ()
57+ y , m , d , x , x , x , x , x , x = time .gmtime (time . time () )
5858 ae (str (date ), '%s-01-25.00:00:00' % y )
5959 date = Date ("2000-04-17.03:45" , - 5 )
6060 ae (str (date ), '2000-04-17.08:45:00' )
@@ -83,6 +83,9 @@ def suite():
8383
8484#
8585# $Log: not supported by cvs2svn $
86+ # Revision 1.6 2001/08/07 00:24:43 richard
87+ # stupid typo
88+ #
8689# Revision 1.5 2001/08/07 00:15:51 richard
8790# Added the copyright/license notice to (nearly) all files at request of
8891# Bizar Software.
0 commit comments