2011-02-23 57 views
1

我使用FQL从Facebook页面查询小型企业的信息,并试图解析营业时间。我回来的数字似乎代表了秒,但我不确定这个时代是什么时候。星期三和星期四是最令人困惑的 - 星期四开放的是“57600”,这将是16小时,这将使得周三下午4点在这个时代,但是周三的收盘时间 - 远远超过4 - 在600,000+范围内。FQL和营业时间

星期一:8:15-12:00和13:00-17:00星期二:上午8点到下午1点和下午1点到下午5点星期三:上午8点到下午1点和下午1点到9点星期四:上午8点到下午1点和下午1点到下午5点星期五:上午8点到下午1点和下午1点 - 下午5点周六:8 AM-12PM和下午1:00 - 5:00

<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

如果您让我知道您使用哪种语言来执行FQL查询,我可以帮您解析结果中的正确时间。 – Intelekshual 2011-02-23 18:27:07

回答

1

Unix纪元是时间00:00:00 UTC on 1 January 1970。任何时候,当你看到与计算机时间有关的术语“时代”时,这通常意味着什么。

在UTC中,404100Mon, 05 Jan 1970 16:15:00 GMT。或者,在PST时区,Mon, 05 Jan 1970 08:15:00 PST,这是您所期待的时间。忽略日期;无论如何,这是无关紧要的。

你可以用这个Epoch Converter来测试我正在描述的内容。

+0

这似乎检查出来。我使用时代作为通用术语,因为它不代表我们使用unix epoc并考虑一周中的某一天(1月1日是1970年的一个星期四)。哦,我应该想到。谢谢 – Brandon 2011-02-23 19:08:48