Menu

#76 CUBRIDdb.Timestamp method can create wrong timestamp

open
nobody
None
5
2012-02-03
2012-02-03
Jira Trac
No

# Brief:
## Use CUBRIDdb.Timestamp(2012,2,30,24,59,59) to generate timestamp '2012-2-30 24:59:59', but it is meaningless. The time max should be '23:59:59' and there should not exist 30 of February
# Test Step:
## Use CUBRIDdb.Timestamp(2012,2,30,24,59,59) to generate a timestamp
# Result:
## can generate date '2012-2-30 24:59:59'
# Code Reference:
{noformat}
import CUBRIDdb
def test_cubrid_timestamp():
timestamp = CUBRIDdb.Timestamp(2012,2,30,24,59,59)
print timestamp
if __name__ == '__main__':
test_cubrid_timestamp()
{noformat}

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.