TimeZone

Overview

Timezone can be used to store and deal with conversions of time in timezones.

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Mapped to:
    • System.TimeZoneInfo  .NET, .NET Standard 2.0
    • java.util.TimeZone  Cooper
    • RemObjects.Elements.System.TimeZone  Island
    • Foundation.NSTimeZone  Toffee, ToffeeV2

Properties


Identifier

Name of this timezone.

 

property Identifier: String read;

 

String Identifier { get; }

 

var Identifier: String { get{} }

 

String Identifier { __get; }

Name .NET, .NET Standard 2.0, Cooper, Toffee, ToffeeV2

Returns the name of this timezone.

 

property Name: String read;

 

String Name { get; }

 

var Name: String { get{} }

 

String Name { __get; }

OffsetToUTC

Contains the current offset to UTC for this timezone.

 

property OffsetToUTC: TimeSpan read;

 

TimeSpan OffsetToUTC { get; }

 

var OffsetToUTC: TimeSpan { get{} }

 

TimeSpan OffsetToUTC { __get; }

Local

Returns the local timezone.

 

class property Local: not nullable TimeZone read;

 

class TimeZone! Local { get; }

 

static var Local: TimeZone { get{} }

 

class TimeZone! Local { __get; }

TimeZoneByName

Fnd a timezone by timezone name.

 

class property TimeZoneByName[aName: String]: nullable TimeZone read;

 

class TimeZone? TimeZoneByName[String aName] { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
static subscript TimeZoneByName(_ aName: String) -> TimeZone? { get{} }
// Toffee
static subscript TimeZoneByName(_ aName: String) -> TimeZone { get{} }

 

class TimeZone TimeZoneByName[String aName] { __get; }

TimeZoneNames

List all timezones.

 

class property TimeZoneNames: not nullable IEnumerable<String> read;

 

class IEnumerable<String>! TimeZoneNames { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
static var TimeZoneNames: IEnumerable<String> { get{} }
// Toffee
static var TimeZoneNames: INSFastEnumeration<String> { get{} }

 

class Iterable<String>! TimeZoneNames { __get; }

Utc

Returns the UTC timezone.

 

class property Utc: not nullable TimeZone read;

 

class TimeZone! Utc { get; }

 

static var Utc: TimeZone { get{} }

 

class TimeZone! Utc { __get; }