阅读背景:

我应该使用哪种SQL数据类型来存储GPS设备的日期时间?

来源:互联网 

I'm working on a project where I have to gather data from GPS devices located in different countries (timezones + daylight savings) and display those data to different users also from different countries. I'm thinking about saving the date in UTC format (that is what I receive from the GPS device) but then again I belive I'll have trouble converting that date to the user's local date (I have to display historical data also so I'll have to account for daylight savings for the given date). Maybe the datetimeoffset datatype would be more appropriate but how would I go about converting the received UTC date to the datetimeoffset datatype? What would you suggest? Thanks!I'm working on a project where I have to gather




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: