![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Basic4ppc Wishlist Missing any feature? |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Until the library is updated, you may retrieve this information by reading out the registry directly: http://msdn2.microsoft.com/en-us/library/aa909148.aspx
specci48 |
|
||||
|
Hi again
Here are the routines. Tested with PPC2003SE, not tested under WM5.x/6.x. Tested on desktop with XP Home Edition. Perhaps there is a more elegant solution involving less code. Please use or abuse ![]() Sub App_Start Reg.New1 'registry.dll Bit.New1 'bitwise.dll End Sub Sub Globals Dim zti(0) As Byte 'Array for binary data (PPC), registry entry is binary End Sub Sub GetTimeZone Dim m, i Reg.RootKey(Reg.rtLocalMachine) If CPPC = True Then zti()=Reg.GetValue("Time","TimeZoneInformation") For i = 3 To 0 Step -1 m = m & bit.DecToHex(zti(i)) Next Return bit.HexToDec(m) / 60 * (-1) Else m = Reg.GetValue("System\CurrentControlSet\Control\Tim eZoneInformation","ActiveTimeBias") Return m / 60 * (-1) End If End Sub Sub GetDayLightSavingHour 'for the desktop only Return Reg.GetValue("System\CurrentControlSet\Control\Tim eZoneInformation","StandardBias") End Sub |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mars Time | alfcen | Share Your Creations | 4 | 05-12-2008 12:21 PM |
| Time Addition | busboy | Questions & Help Needed | 3 | 10-01-2007 02:41 PM |
| Date and Time | Erel | Tutorials | 0 | 09-24-2007 10:05 AM |
| Load time | BPak | Questions & Help Needed | 3 | 08-28-2007 04:27 AM |
| .NET 3.0 and 3.5 / Time Zone | alfcen | Questions & Help Needed | 3 | 08-23-2007 06:58 PM |