Table of Contents

Clock (2.3)

Plugin Information

Information
Developer: StarHawk
Download: Clock
Download Count: 0
Support: Click Here
Release Date: January 27th 2008
Changelog: Click Here

What is Clock

Clock will display the current time on your screen, with the ability to show other timezones around the world also! Clock will remember what time it is for your friends in other countries so you can know when they are likely to be on.

Usage

Load clock by console or in game with load clock or //load clock respectively. If clock.ini does not exists, or settings are missing, they will automatically be created. It is recommended you delete Clock.ini if it exists from Windower 3.26.

Once it is created, unload Clock and edit Clock.ini settings.

Main:FORMAT

Please refer to the MSDN strftime page for format codes usable.

WARNING: Using % with anything NOT registered on that page as usable will cause your game to HARDLOCK. This is not a problem with clock, its a problem with the code someone wrote for strftime to not add handling of unexpected format codes. Don't know what genius made that stupid mistake, but whatever. Don't use anything not found on that page.

2 special format strings are added: &TZK& and &TZV&. These are used from the TimeZone section &TZK& will return the Key from the Time Zone entry, and &TZV& will return the value.

TimeZone section

Please refer to MSDN Time Zone Indexes for list of valid KEY NAMES. For information about what KEY NAMES are useable, please visitTime Zones Defined on your System If you use an invalid key name it will default to UTC.

The key for each timezone listed is what timezone will be added to display, and the text on the right is a place to customize what is shown. Example:

[TimeZones]
Eastern Standard Time=EST
[Main]
FORMAT=&TZV&: %H:%M:%S

If you use &TZV& like above, the clock will display:

EST: 5:32:54

If you use &TZK& instead, it will display:

Eastern Standard Time: 5:32:54

Advanced Formats

You may also use time format codes inside of the Values for Timezones, giving you custom formats for each timezone.

[TimeZones]
Eastern Standard Time=EST: %I:%M:%S%p
Tokyo Standard Time=JST: %I:%M%p
[Main]
FORMAT=&TZV&

Since format is only the value of the TimeZone, the value of the timezone entry will be the format string.

You can then do such as above and only show seconds on your local time.

FIXME someone finish up details of rest of settings please :(