简体   繁体   中英

Is the date value returned by the facebook API(s) in GMT format?

Is the date value returned by the facebook API(s) in GMT format? So if I query for messages containing a certain word (eg 'sports') I try to search for all messages b/w 2 dates (in my local timezone), so how am I supposed to interpret the values returned by the search? Would it be GMT or my local timezone?

From the Facebook Developer page:

All date fields are returned as ISO-8601 formatted strings. You can optionally override the date format by specifying a "date_format" query parameter. The accepted format strings are identical to those accepted by the php date function. For example, https://graph.facebook.com/platform/feed?date_format=U returns the Platform page's feed, with unixtime-formatted dates.

https://developers.facebook.com/docs/reference/api/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM