unix - C++: how to convert date string to int -
hi need procedure convert string time int. support formats under unix:
"wed, 09 feb 1994 22:23:32 gmt" -- http format "thu feb 3 17:03:55 gmt 1994" -- ctime(3) format "thu feb 3 00:00:00 1994", -- ansi c asctime() format "tuesday, 08-feb-94 14:15:29 gmt" -- old rfc850 http format "tuesday, 08-feb-1994 14:15:29 gmt" -- broken rfc850 http format "03/feb/1994:17:03:55 -0700" -- common logfile format "09 feb 1994 22:23:32 gmt" -- http format (no weekday) "08-feb-94 14:15:29 gmt" -- rfc850 format (no weekday) "08-feb-1994 14:15:29 gmt" -- broken rfc850 format (no weekday) "1994-02-03 14:15:29 -0100" -- iso 8601 format "1994-02-03 14:15:29" -- zone optional "1994-02-03" -- date "1994-02-03t14:15:29" -- use t separator "19940203t141529z" -- iso 8601 compact format "19940203" -- date "08-feb-94" -- old rfc850 http format (no weekday, no time) "08-feb-1994" -- broken rfc850 http format (no weekday, no time) "09 feb 1994" -- proposed new http format (no weekday, no time) "03/feb/1994" -- common logfile format (no time, no offset) "feb 3 1994" -- unix 'ls -l' format "feb 3 17:03" -- unix 'ls -l' format "11-15-96 03:52pm" -- windows 'dir' format
can please advice something.
i'd take strong @ boost.date_time. date-time input/output looks want.
Comments
Post a Comment