Class TimeLocation
Data about location where time is measured relative to UTC
Inheritance
System.Object
TimeLocation
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Time
Assembly: Azos.dll
Syntax
public sealed class TimeLocation : IConfigurable
Constructors
TimeLocation(Boolean)
Creates instance that uses entity's parent settings. May use TimeLocation.Parent static instance instead
Declaration
public TimeLocation(bool immutable = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | immutable |
TimeLocation(TimeSpan, String, Boolean)
Declaration
public TimeLocation(TimeSpan utcOffset, string description, bool immutable = false)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | utcOffset | |
System.String | description | |
System.Boolean | immutable |
Fields
CONFIG_TIMELOCATION_SECTION
Declaration
public const string CONFIG_TIMELOCATION_SECTION = "time-location"
Field Value
Type | Description |
---|---|
System.String |
Properties
Description
Location description
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Immutable
Returns true to indicate that the instance can not be mutated with Configure() or property sets
Declaration
public bool Immutable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Parent
Returns a singleton instance of timelocation which uses parent setting
Declaration
public static TimeLocation Parent { get; }
Property Value
Type | Description |
---|---|
TimeLocation |
UseParentSetting
Returns true when entity's parent settings should be used
Declaration
public bool UseParentSetting { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
UTC
Returns a singleton instance of UTC timelocation (zero offset from UTC)
Declaration
public static TimeLocation UTC { get; }
Property Value
Type | Description |
---|---|
TimeLocation |
UTCOffset
Returns UTC offset
Declaration
public TimeSpan UTCOffset { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Methods
Configure(IConfigSectionNode)
Declaration
public void Configure(IConfigSectionNode node)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | node |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()