api - Unix time stamp or string with time zone? -
i web rest api service i've decided return datetime data string timezone looks this: "somedate":"2012-01-23t22:52:37.039+02:00"
wonder, how idiomatic it? if returned unix time stamp, more sensible?
personally, prefer using unix timestamps in situations because timezone agnostic , leaves timezone interpretation entirely client. additionally, depending on client, it's less code parse unix timestamp date date string, that's ancillary consideration.
Comments
Post a Comment