Signals

THE SIGNAL BOX


Railway signalling discussion

Clock settings

Essential information about the use of this forum and other news

Clock settings

Unread postby John Hinson » Thu Jun 18, 2009 5:22 pm

By default, this forum will display GMT, UTC or Zulu time, depending on how you like to describe it. This is because the server is housed in the UK, and the time is taken from it.

If you live in another country
You can change the timezone settings from within your Settings or User Control Panel, click on Board Preferences and select your timezone in the My timezone section.

If you want the clock to be adjusted for Summer Time
You have to manually change this. You can change it from within your Settings or User Control Panel, click on Board Preferences and change Summer Time/DST is in effect.

If you want to change the format that the time is displayed in
You can change it from within your Settings or User Control Panel, click on Board Preferences and change My date format. A range of pre-formatted layouts are provided to choose from, but if you want something different to those on offer it will require some careful use of programming code. You can use the following characters:
a = am/pm in lower case
A - AM/PM in upper case
d = Day of month with leading zeros
D - Day of week (three letters)
F = Month name
g = Hour (12 hr format) without leading zeros
G = Hour (24 hr format) without leading zeros
h = Hour (12 hr format) with leading zeros
H = Hour (24 hr format) with leading zeros
i = Minutes
j = Day of month, without leading zeros
l = Day of week (name)
L = Leap year (displays 1 for yes, 2 for no)
m = Month of year, number with leading zeros
M = Month of year (three letters)
n = Month of year, number without leading zeros
s = Seconds
y = Year (two digits)
Y = Year (four digits)
z = Day of year (0-365)

You can also insert ordinary letters by preceding them with a backslash.

Examples:
d M Y g:i a will give the time as, for example: 18 Jun 2009 5:59 pm
j \o\f F Y, \a\t g.i a will give you, for example: 18 of June 2009, at 5.59 pm
m/d/y G.i:s will give you, for example: 06/18/09 17.59:44

With a little patience you can get this to display the date according to your preference.

Please do not use any other codes. They exist in the programming language for other purposes and many will cause unexpected self-inflicted results.

John
Image
‹(•¿•)›
User avatar
John Hinson
Site Admin
Site Admin
 
Posts: 6644
Joined: Thu Nov 8, 2007 1:13 pm
Location: at my computer

Return to Forum information

Who is online

Users browsing this forum: No registered users and 1 guest