我正在使用FQL从Facebook页面查询小型企业的信息,我正在尝试解析营业时间。我回来的数字似乎代表了几秒钟,但我不确定这个时代是什么时候。星期三和星期四是最令人困惑的 - 星期四开放的是“57600”,这将是16小时的秒数,这将使星期三下午4点成为时代,但是周三的截止时间 - 远远超过4 - 在600,000+范围内。
星期一:上午8:15至下午12点,下午1点至下午5点星期二:上午8点至下午12点,下午1点至下午5点星期三:上午8点至下午12点,下午1点至晚上9点星期四:上午8点至下午12点,下午1点至下午5点,星期五,上午8点至下午12点,下午1点至下午5点周六:上午8点至下午12点,下午1点至下午5点<hours>
<mon_1_open>404100</mon_1_open>
<mon_1_close>417600</mon_1_close>
<tue_1_open>489600</tue_1_open>
<tue_1_close>504000</tue_1_close>
<wed_1_open>576000</wed_1_open>
<wed_1_close>590400</wed_1_close>
<thu_1_open>57600</thu_1_open>
<thu_1_close>72000</thu_1_close>
<fri_1_open>144000</fri_1_open>
<fri_1_close>158400</fri_1_close>
<sat_1_open>230400</sat_1_open>
<sat_1_close>244800</sat_1_close>
<sun_1_open>0</sun_1_open>
<sun_1_close>0</sun_1_close>
<mon_2_open>421200</mon_2_open>
<mon_2_close>435600</mon_2_close>
<tue_2_open>507600</tue_2_open>
<tue_2_close>522000</tue_2_close>
<wed_2_open>594000</wed_2_open>
<wed_2_close>622800</wed_2_close>
<thu_2_open>75600</thu_2_open>
<thu_2_close>90000</thu_2_close>
<fri_2_open>162000</fri_2_open>
<fri_2_close>176400</fri_2_close>
<sat_2_open>248400</sat_2_open>
<sat_2_close>262800</sat_2_close>
<sun_2_open>0</sun_2_open>
<sun_2_close>0</sun_2_close>
</hours>
如果我将其更改为周一至周六上午8点至下午5点,我会得到FB同样令人困惑的回复
<hours>
<mon_1_open>403200</mon_1_open>
<mon_1_close>435600</mon_1_close>
<tue_1_open>489600</tue_1_open>
<tue_1_close>522000</tue_1_close>
<wed_1_open>576000</wed_1_open>
<wed_1_close>608400</wed_1_close>
<thu_1_open>57600</thu_1_open>
<thu_1_close>90000</thu_1_close>
<fri_1_open>144000</fri_1_open>
<fri_1_close>176400</fri_1_close>
<sat_1_open>230400</sat_1_open>
<sat_1_close>262800</sat_1_close>
<sun_1_open>0</sun_1_open>
<sun_1_close>0</sun_1_close>
<mon_2_open>0</mon_2_open>
<mon_2_close>0</mon_2_close>
<tue_2_open>0</tue_2_open>
<tue_2_close>0</tue_2_close>
<wed_2_open>0</wed_2_open>
<wed_2_close>0</wed_2_close>
<thu_2_open>0</thu_2_open>
<thu_2_close>0</thu_2_close>
<fri_2_open>0</fri_2_open>
<fri_2_close>0</fri_2_close>
<sat_2_open>0</sat_2_open>
<sat_2_close>0</sat_2_close>
<sun_2_open>0</sun_2_open>
<sun_2_close>0</sun_2_close>
</hours>
我错过了一些事实上的标准时间表示吗?如何将某人解析为合法的时间?
答案 0 :(得分:1)
Unix纪元是时间00:00:00 UTC on 1 January 1970
。每当你看到与基于计算机的时间有关的术语“时代”时,通常就意味着它。
在UTC中,404100
为Mon, 05 Jan 1970 16:15:00 GMT
。或者,在PST时区Mon, 05 Jan 1970 08:15:00 PST
,这是您期待的时间。忽略日期;无论如何,它无关紧要。
您可以使用此Epoch Converter来测试我所描述的内容。