to compare Indian time

巧了我就是萌 提交于 2019-12-12 02:42:40

问题


I want to find out what will be the time in india when clock tick to 1Am mid night in any other country.. How i will find out that through any means plz help me to find out this this is to fire birthbay mails at 1AM midnight of that resp country...


回答1:


SQL SERVER 2008 would have the DATETIMEOFFSET data type (which includes the time zone) plus functions like SWITCHOFFSET to switch from one timezone offset to another.

What version are you on?




回答2:


.NET 3.5 added the class TimeZoneInfo which should be able to do want you want. Particularly, the TimeZoneInfo.ConvertTime(DateTime, TimeZoneInfo, TimeZoneInfo) method.

You can also use the TimeZoneInfo.GetSystemTimeZones() method to get the list of time zones that are registered in the system.




回答3:


You might want to look at the method:

TimeZoneInfo.ConvertTime


来源:https://stackoverflow.com/questions/3360266/to-compare-indian-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!