gtjemwa / augustus

Automatically exported from code.google.com/p/augustus
0 stars 0 forks source link

Fields of type dateTimeSecondsSince[aYear] are not output in expected form #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  output a field of type dateTimeSecondsSince[aYear] 
2.
3.

What is the expected output? What do you see instead?

When a field of type dateTimeSecondsSince[aYear] is output, it is not in the 
expected format (an 
integer) but in "YYYY-MM-DD HH:MM:SS" string format.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by collinbe...@gmail.com on 5 Oct 2009 at 7:29

GoogleCodeExporter commented 8 years ago
Testing

target date is:  1175662200
base year is:  1970
new result:  1175640600

target date is:  1175662500
base year is:  1970
new code result:  1175640900
old code result:  2007-04-04 05:55:00

target date:  1175662500
year is:  1970
ctime 1175662500 is Tue Apr  3 23:55:00 2007
time.localtime(1175662500) is (2007, 4, 3, 23, 55, 0, 1, 93, 1)
timestamp is:  time.struct_time(tm_year=2007, tm_mon=4, tm_mday=4, tm_hour=5, 
tm_min=55, tm_sec=0, tm_wday=2, tm_yday=94, tm_isdst=1)
the datetime is:  2007-04-04 05:55:00

Original comment by collinbe...@gmail.com on 22 Nov 2010 at 10:53

GoogleCodeExporter commented 8 years ago
Commit to trunk at revision 343

Original comment by collinbe...@gmail.com on 30 Nov 2010 at 8:55