[Zope-Checkins] CVS: Products/DCOracle2/DCOracle2 - DCOracle2.py:1.94
Matthew T. Kromer
matt@zope.com
Wed, 21 Aug 2002 11:31:42 -0400
Update of /cvs-repository/Products/DCOracle2/DCOracle2
In directory cvs.zope.org:/tmp/cvs-serv4400/DCOracle2
Modified Files:
DCOracle2.py
Log Message:
Make date conversion used unsigned char vs signed char (Collector #59)
=== Products/DCOracle2/DCOracle2/DCOracle2.py 1.93 => 1.94 ===
--- Products/DCOracle2/DCOracle2/DCOracle2.py:1.93 Tue Aug 20 09:28:37 2002
+++ Products/DCOracle2/DCOracle2/DCOracle2.py Wed Aug 21 11:31:11 2002
@@ -1771,30 +1771,36 @@
#
def Date(year, month, day):
+ "Date(year, month, day)"
t = time.mktime((year, month, day, 0, 0, 0, 0, 0, -1))
if time.daylight: t = t - time.altzone
else: t = t - time.timezone
return dco2.OracleDate(t)
def Time(hour, minute, second):
+ "Time(hour, minute, second)"
t = time.mktime((0, 0, 0, hour, minute, second, 0, 0, -1))
if time.daylight: t = t - time.altzone
else: t = t - time.timezone
return dco2.OracleDate(t)
def Timestamp(year, month, day, hour, minute, second):
+ "Timestamp(year, month, day, hour, minut, second)"
t = time.mktime((year, month, day, hour, minute, second, 0, 0, -1))
if time.daylight: t = t - time.altzone
else: t = t - time.timezone
return dco2.OracleDate(t)
def DateFromTicks(ticks):
+ "DateFromTicks(ticks)"
return dco2.OracleDate(ticks)
def TimeFromTicks(ticks):
+ "TimeFromTicks(ticks)"
return dco2.OracleDate(ticks)
def TimestampFromTicks(ticks):
+ "TimestampFromTicks(ticks)"
return dco2.OracleDate(ticks)
def Binary(string):