asp.net - timestap time used in instagram API in c# -
i've been cached response instagram api.but response contains specular time format, didn't meet anywhere.
"created_time":"1437648595",
and question is:
how convert template (as string type) system.datetime type? tanx
instagram uses value unix time, can double
first , can use ;
datetime dt = new datetime(1970, 1, 1, 0, 0, 0, 0, datetimekind.utc); dt = dt.addseconds(1437648595).tolocaltime();
it returns 23.07.2015 13:49:55
in time zone in utc+03:00
.
Comments
Post a Comment