Answered by:
Converting Int 64 to DateTime Format

Question
-
Hello I got a JsonObject by debug_token as in this link
https://developers.facebook.com/docs/facebook-login/access-tokens/
Topic : Getting Info about Tokens and Debugging
and I need to know what is expires_at/issued_at (What is the dataType) and how to convert it to C#'s DateTime.
Simply I need to know what is facebook mean by expires_at? is it the time(seconds/minutes)to it's death or correct time format (DateTime) iam using Facebook C# SDK
json array I got is
{ "data": { "app_id": *********, "is_valid": true, "application": "MyApp1", "user_id": *********, "issued_at": 1367606488, "expires_at": 1372790488, "scopes": [ "create_note", "manage_notifications", "photo_upload", "publish_actions", "publish_stream", "read_stream", "share_item", "status_update", "user_about_me", "user_photos", "video_upload" ] } }
Santana George
Saturday, May 4, 2013 6:05 AM
Answers
-
Hello I got a JsonObject by debug_token as in this link
https://developers.facebook.com/docs/facebook-login/access-tokens/
Topic : Getting Info about Tokens and Debugging
and I need to know what is expires_at/issued_at (What is the dataType) and how to convert it to C#'s DateTime.
Simply I need to know what is facebook mean by expires_at? is it the time(seconds/minutes)to it's death or correct time format (DateTime) iam using Facebook C# SDK
json array I got is
{ "data": { "app_id": *********, "is_valid": true, "application": "MyApp1", "user_id": *********, "issued_at": 1367606488, "expires_at": 1372790488, "scopes": [ "create_note", "manage_notifications", "photo_upload", "publish_actions", "publish_stream", "read_stream", "share_item", "status_update", "user_about_me", "user_photos", "video_upload" ] } }
Santana George
That's probably a UNIX Date Integer - which i believe is the number of seconds since early 1970...
Try this answer (see checked answer):
http://stackoverflow.com/questions/249760/how-to-convert-unix-timestamp-to-datetime-and-vice-versa-Rob
- Marked as answer by Santana George Saturday, May 4, 2013 10:58 AM
Saturday, May 4, 2013 10:49 AM
All replies
-
Hello I got a JsonObject by debug_token as in this link
https://developers.facebook.com/docs/facebook-login/access-tokens/
Topic : Getting Info about Tokens and Debugging
and I need to know what is expires_at/issued_at (What is the dataType) and how to convert it to C#'s DateTime.
Simply I need to know what is facebook mean by expires_at? is it the time(seconds/minutes)to it's death or correct time format (DateTime) iam using Facebook C# SDK
json array I got is
{ "data": { "app_id": *********, "is_valid": true, "application": "MyApp1", "user_id": *********, "issued_at": 1367606488, "expires_at": 1372790488, "scopes": [ "create_note", "manage_notifications", "photo_upload", "publish_actions", "publish_stream", "read_stream", "share_item", "status_update", "user_about_me", "user_photos", "video_upload" ] } }
Santana George
That's probably a UNIX Date Integer - which i believe is the number of seconds since early 1970...
Try this answer (see checked answer):
http://stackoverflow.com/questions/249760/how-to-convert-unix-timestamp-to-datetime-and-vice-versa-Rob
- Marked as answer by Santana George Saturday, May 4, 2013 10:58 AM
Saturday, May 4, 2013 10:49 AM -
Thanks that's Correct Answer.
Santana George
Saturday, May 4, 2013 10:58 AM