cohtml.Net.ITimeZoneProvider
Inherits from SystemIDisposable
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| virtual void | Dispose() |
| virtual void | GetLocalTimezoneName(double timeMsUtc, System.IntPtr buffer, ulong maxBufferSize) Returns the short name of the local timezone for a specific point in time. (e.g. EST, PDT) |
| virtual double | GetDaylightSavingsOffset(double timeMsUtc) Returns the daylight savings time offset (in milliseconds) for a specific point in time. |
| virtual double | GetLocalTimeOffset(double timeMs, bool isTimeUtc) Returns the local time offset (without DST) from UTC (in milliseconds) for a specific point in time. Must comply to the following spec https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-local-time-zone-adjustment. |
Protected Attributes
Section titled “Protected Attributes”| Name | |
|---|---|
| bool | swigCMemOwn |
Public Functions Documentation
Section titled “Public Functions Documentation”function Dispose
Section titled “function Dispose”virtual void Dispose()function GetLocalTimezoneName
Section titled “function GetLocalTimezoneName”virtual void GetLocalTimezoneName( double timeMsUtc, System.IntPtr buffer, ulong maxBufferSize)Returns the short name of the local timezone for a specific point in time. (e.g. EST, PDT)
Parameters:
- timeMsUtc UTC time point in milliseconds
- buffer a zero terminated buffer to fill the result
- maxBufferSize the max size of the buffer
function GetDaylightSavingsOffset
Section titled “function GetDaylightSavingsOffset”virtual double GetDaylightSavingsOffset( double timeMsUtc)Returns the daylight savings time offset (in milliseconds) for a specific point in time.
Parameters:
- timeMsUtc UTC time point in milliseconds
Return: the daylight savings time offset
function GetLocalTimeOffset
Section titled “function GetLocalTimeOffset”virtual double GetLocalTimeOffset( double timeMs, bool isTimeUtc)Returns the local time offset (without DST) from UTC (in milliseconds) for a specific point in time. Must comply to the following spec https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-local-time-zone-adjustment.
Parameters:
- timeMs a time point in milliseconds when isTimeUtc is true the time point is in the UTC time zone when isTimeUtc is false the time point is in the local time zone
- isTimeUtc whether timeMs is in the UTC or local time zone
Return: the offset of the local time zone from UTC at timeMs
Protected Attributes Documentation
Section titled “Protected Attributes Documentation”variable swigCMemOwn
Section titled “variable swigCMemOwn”bool swigCMemOwn;© 2026 Coherent Labs. All rights reserved.