Interface ILocalizedTimeProvider
Describes an entity that provides the localized time
Assembly: Azos.dll
Syntax
public interface ILocalizedTimeProvider
Properties
LocalizedTime
Returns current time localized per TimeLocation
Declaration
DateTime LocalizedTime { get; }
Property Value
Type |
Description |
System.DateTime |
|
TimeLocation
Declaration
TimeLocation TimeLocation { get; }
Property Value
Methods
LocalizedTimeToUniversalTime(DateTime)
Converts localized time to UTC time as of TimeLocation property
Declaration
DateTime LocalizedTimeToUniversalTime(DateTime local)
Parameters
Type |
Name |
Description |
System.DateTime |
local |
|
Returns
Type |
Description |
System.DateTime |
|
UniversalTimeToLocalizedTime(DateTime)
Converts universal time to local time as of TimeLocation property
Declaration
DateTime UniversalTimeToLocalizedTime(DateTime utc)
Parameters
Type |
Name |
Description |
System.DateTime |
utc |
|
Returns
Type |
Description |
System.DateTime |
|
Extension Methods