View Single Post
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#126
Originally Posted by lorelei View Post
Code:
python2.5 testdate.txt 126511062
Code:
['__builtins__', '__date_re', '__datetime_re', '__datetime_rx', '__doc__', '__extract_date', '__extract_time', '__extract_tzd', '__file__', '__find_julian', '__name__', '__time_re', '__tzd_re', '__tzd_rx', '__version__', 'ctime', 'parse', 'parse_timezone', 'time', 'tostring']
126511062 -> 1974-01-04T05:57:42.000Z
Originally Posted by lorelei View Post
the number above is the UNIX timestamp you posted previously.
No, it's not.
Originally Posted by lorelei View Post
Code:
['__builtins__', '__date_re', '__datetime_re', '__datetime_rx', '__doc__', '__extract_date', '__extract_time', '__extract_tzd', '__file__', '__find_julian', '__name__', '__time_re', '__tzd_re', '__tzd_rx', '__version__', 'ctime', 'parse', 'parse_timezone', 'time', 'tostring']
 *** 2010-02-02T11:37Z 
1265110620 -> 2010-02-02T11:37:00.000Z
But that one is!

I get the exact same output, except that the line beginning with three stars is not there:
Code:
['__builtins__', '__date_re', '__datetime_re', '__datetime_rx', '__doc__', '__extract_date', '__extract_time', '__extract_tzd', '__file__', '__find_julian', '__name__', '__time_re', '__tzd_re', '__tzd_rx', '__version__', 'ctime', 'parse', 'parse_timezone', 'time', 'tostring']
1265110620 -> 2010-02-02T11:37:00.000Z
/P
 

The Following User Says Thank You to Palleman For This Useful Post: