facebook - FQL and business hours -
i'm querying information facebook page small business using fql , i'm trying parse business hours. numbers getting seem represent seconds i'm not sure when epoch is. wednesday , thursday confusing - open on thursday "57600" 16 hours in seconds make 4pm wednesday epoch, closing hours on wednesday - far past 4- in 600,000+ range.
mon: 8:15am-12pm , 1pm - 5pm tue: 8am-12pm , 1pm - 5pm wed: 8am-12pm , 1pm - 9pm thur:8am-12pm , 1pm - 5pm fri:8am-12pm , 1pm - 5pm sat:8am-12pm , 1pm - 5pm
<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>
if change 8am-5pm monday saturday equally confusing response 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>
am missing defacto standard time representation? how go parsing legitimate time of day?
the unix epoch time 00:00:00 utc on 1 january 1970
. time see term "epoch" used in relation computer-based time, that's means.
in utc, 404100
mon, 05 jan 1970 16:15:00 gmt
. or, in pst timezone, mon, 05 jan 1970 08:15:00 pst
, time you're expecting. ignore date; it's irrelevant, anyways.
you can test i'm describing using epoch converter.
Comments
Post a Comment