daylight.start
I need to get the start and end dates for daylight savings time throughout the world.
I can use daylight.start and daylight.nd to get my local dates. From what I found out is that these routines use timezone.xxx
which is normally timezone.local. Does anyone know how I can change timezone.local to a differant country within basic or another way I can get these dates?
Thanks
[400 byte] By [
ttfo] at [2007-12-28]
ttfo wrote: |
| I need to get the start and end dates for daylight savings time throughout the world. I can use daylight.start and daylight.nd to get my local dates. From what I found out is that these routines use timezone.xxx which is normally timezone.local. Does anyone know how I can change timezone.local to a differant country within basic or another way I can get these dates? Thanks |
|
Hi,
From this thread.>>
The user "ALEX MS VB QA" talks of setting the current locale.
Try doing this at the start of your program.
Maybe you need to do that to get the various results you want.
Regards,
S_DS.
P.S.
See also.>>
Alex MS VB QA wrote: |
System.Threading.Thread.CurrentThread.CurrentCulture = _ New System.Globalization.CultureInfo("en-us") That said, I'd like to make a couple of points - locales are used to determine what conversions do when going from string to decimal and vice versa, since the text is assumed to be wanted to be intelligible by the local user - won't your danish users type 22,50 for the latitude information? You may want to leave the current thread's locale as per the local settings, and either just change it to write data files to disk, or use non text formats when writing to disk. Non text formats are independent of the locale.
Alex MS VB QA |
|