Topic: e621 updater - tag local files!

Keito said:
To be honest, i have no idea how date works in JSON.
I mean, as an example:
"created_at":{"n":236133000,"s":1445010595,"json_class":"Time"}
How does this translates into 2015-10-16 is a mystery.
If i'll have some spare time to make this work, i will. Otherwise you'll have to live with year tags in "tags".
I can copy year (only) from "tags" to the "date" if you want.

s is seconds since epoch (Jan 1, 1970 AFAIK), n is nanoseconds (so, this is the fractional part; usually can be ignored)

That said, date doesn't work in JSON, there is no date type. Different applications simply use different hacks to store time in JSON, either as strings or as dictionaries. There are at least 3 common ways.

Updated by anonymous