%IsValidTimeZone function


Function

The function checks whether the given text is valid time zone.

Declaration
BOOL %IsValidTimeZone(
  TEXT in timeZone
)
Parameters
timeZoneTime zone name.
Description

The function checks whether the given text is valid time zone name or valid definition of UTC offset.

Valid names are those defined in Time Zone Database. Compendious list is available on Wikipedia.

Valid definition of UTC offset is text using format "(+|-)hh[:mi[:ss]]", where hh defines number of hours, mi defines number of minutes, and ss defines number of seconds. Sign as well as number of hours are mandatory parts of offset definition, number of minutes and seconds are optional and default to 0 (e.g. "+02:30" defines offset of 2 hours and 30 minutes from UTC).

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .