The framework uses the following properties to define a
| Property | Description |
| offset | Base offset in minutes from UTC, e.g. 120 (UTC+2) or -300 (UTC-5) |
| dstMode | Daylight savings schedule. One of the values of the |
For example, the following defines a base offset 2 hours ahead of UTC, changing into daylight savings (UTC+3) on the USA schedule:
timezone: {
offset: 120,
dstMode: FXB.DSTModes.USA
}
Note: this is a time zone widely used in forex trading, but not a setting you will ever see on a normal clock. It is widely referred to as "central European time" or "Cyprus time" (because many fx brokers are based there), but that is not what it is. It is 2/3 hours ahead of UTC, but it changes on the USA daylight-savings schedule, not the European schedule. It will be the same as Cyprus time for most of the year, but it will be different during the periods when the USA is in daylight-savings but Europe is not.