The MASM Forum

General => The Campus => Topic started by: Tedd on October 13, 2013, 10:56:13 AM

Title: Date & Time All Around The World
Post by: Tedd on October 13, 2013, 10:56:13 AM
Hi timezone fans:

Are you tired of wondering what the time is in another country?

Are you unhappy with flaky, halfway solutions?

Then look no further - Tedd's unpatented time zone formulator will take those worries away!

Works for all time zones! Calculates daylight saving accurately! Updates the time every minute!

Satisfaction guaranteed - or your money back!! :biggrin:

That's all folks!



[Edit: attachment replaced with fixed version.]
[Edit2: really fixed this time..]
Title: Re: Date & Time All Around The World
Post by: dedndave on October 13, 2013, 11:05:56 AM
nice, Tedd   :t

ps - i still want my money back   :biggrin:
Title: Re: Date & Time All Around The World
Post by: Gunther on October 13, 2013, 10:41:42 PM
Tedd,

works fine. Well done.  :t

Gunther
Title: Re: Date & Time All Around The World
Post by: Vortex on October 14, 2013, 12:54:15 AM
Hi Tedd,

Nice work :t
Title: Re: Date & Time All Around The World
Post by: FORTRANS on October 14, 2013, 12:58:25 AM
Hi,

   It works nicely.

Thanks,

Steve N.
Title: Re: Date & Time All Around The World
Post by: qWord on October 14, 2013, 01:40:26 AM
the Key "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Time Zones" does not exist on my machine (win7, x64), thus the dialog initialization fails. After manual selecting a time zone, it works perfect.

BTW: checked with regedit.
Title: Re: Date & Time All Around The World
Post by: Vortex on October 14, 2013, 01:51:44 AM
Quote from: qWord on October 14, 2013, 01:40:26 AM
the Key "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Time Zones" does not exist on my machine (win7, x64), thus the dialog initialization fails. After manual selecting a time zone, it works perfect.

BTW: checked with regedit.

The missing time zones could be fixed :

http://blogs.technet.com/b/dst2007/archive/2007/03/06/missing-time-zones-in-registry.aspx
Title: Re: Date & Time All Around The World
Post by: dedndave on October 14, 2013, 02:23:02 AM
i think there is another instance in HKLM - better to use that one, no ?
windows 7-64 should properly virtualize the 64-bit set to 32-bit

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones]

EDIT: that's what Tedd uses - HKLM
Title: Re: Date & Time All Around The World
Post by: Tedd on October 14, 2013, 09:55:11 AM
Quote from: qWord on October 14, 2013, 01:40:26 AM
the Key "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Time Zones" does not exist on my machine (win7, x64), thus the dialog initialization fails. After manual selecting a time zone, it works perfect.

BTW: checked with regedit.
Thanks, I've fixed it now - I hope (attachment replaced in first posting.)


I would've expected there to be a different time zone selection for each user, but it appears there's only one for the machine - so the per-user key becomes redundant; now I'm using the name of the machine's current time zone. now I'm using the GetTimeZoneInformation function, like any sensible person should. :greensml:
Title: Re: Date & Time All Around The World
Post by: dedndave on October 14, 2013, 11:34:09 AM
it's 10:33 AM in Yakutsk   :P
Title: Re: Date & Time All Around The World
Post by: Antariy on October 14, 2013, 12:41:12 PM
Quote from: Tedd on October 13, 2013, 10:56:13 AM
Hi timezone fans:

:greensml: Very satiric and witty, Tedd :t
The program not only shows the time, it even saves the Forum's database space :biggrin:
Title: Re: Date & Time All Around The World
Post by: FORTRANS on October 14, 2013, 11:42:04 PM
Hi,

   Now works without any user input.  The original had me
select a time zone.

Regards,

Steve
Title: Re: Date & Time All Around The World
Post by: Gunther on October 15, 2013, 04:21:30 AM
Tedd,

the new version works smooth.  :t

Gunther