mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-21 15:40:58 +00:00
1 line
1.6 KiB
JSON
1 line
1.6 KiB
JSON
[{"user_id": 4149, "stars": [], "topic_id": 21191, "date_created": 1303707066.1441541, "message": "just curious why use a double OLE Automation date format when a long unixtime is so much more compatible thru programing languages", "group_id": 2780, "id": 799291}, {"user_id": 1, "stars": [], "topic_id": 21191, "date_created": 1303756385.896661, "message": "I'll share the code we're using to emit the timestamp", "group_id": 2780, "id": 805892}, {"user_id": 1, "stars": [], "topic_id": 21191, "date_created": 1303756387.0542381, "message": "def datetime_to_timestamp(dt):\n return calendar.timegm(dt.timetuple()) + (dt.microsecond / 1000000.0)", "group_id": 2780, "id": 805893}, {"user_id": 1, "stars": [], "topic_id": 21191, "date_created": 1303756334.1830161, "message": "I'm not exactly sure what's being asked here, we're not using OLE Automation format unless it's by accident.", "group_id": 2780, "id": 805879}, {"user_id": 4149, "stars": [], "topic_id": 21191, "date_created": 1303760733.8675251, "message": "ok never mind it is my java environment", "group_id": 2780, "id": 806502}, {"user_id": 28606, "stars": [], "topic_id": 21191, "date_created": 1303815617.824162, "message": "hope that helps", "group_id": 2780, "id": 812561}, {"user_id": 28606, "stars": [], "topic_id": 21191, "date_created": 1303815404.452949, "message": "@italiano40 to convert it to the milliseconds that java understands, you need to multiply convore's timestamp by 1000 and round it to the nearest long. That will give you the correct milliseconds to feed into the Date object", "group_id": 2780, "id": 812547}] |