我正在为4sq开发应用程序,监测用户的签到和建立航班统计(JetLovers.com)。例如,有时我在签到的createdAt中看到非常奇怪的数据:
38.769611 -9.131699里斯本机场(LIS) 2012-05-03 04:23:00 40.644569 -73.783493约翰·肯尼迪国际机场
我怀疑这个人找到了隐形传送机,在3秒内走了3000英里。
我的问题是,这些数据是如何生成的,我们如何依赖它。
发布于 2012-06-01 17:53:02
我认为checkins createdAt数据是有时间值的(从1970年开始计算),没有毫秒和timeZoneOffset,我在两个地方检入,相差1秒。
{
"id":"4fc88864e4b04ec64af27a3c",
"createdAt":1338542180,
"type":"checkin",
"shout":"He he",
"timeZone":"America\/New_York",
"timeZoneOffset":-240,
"venue":{
"id":"4eb1386282317685624c2e18",
"name":"11220 Brooklyn, NY",
"contact":{},
"location":{
"lat":40.65082835341778,
"lng":-74.00814735447314,
"country":"United States"
}
}
}
{
"id":"4fc88863e4b005dcbe793e44",
"createdAt":1338542179,
"type":"checkin",
"shout":"Original place",
"timeZone":"Asia\/Kolkata",
"timeZoneOffset":330,
"venue":{
"id":"4f45d635e4b035f2e5635241",
"name":"Prernathirth Derasar",
"contact":{},
"location":{
"lat":23.020828247070312,
"lng":72.52046966552734,
"country":"India"
}
}
}在这里,我在1秒的时间跨度内在两个不同的地方签到,你可以看到timeZoneOffset是用来区分时区的。
https://stackoverflow.com/questions/10721778
复制相似问题