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

Popular posts from this blog

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

symfony - imagine_filter() not generating the correct url in LiipImagineBundle -