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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -