mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-14 04:05:04 +00:00
feat: GetUtcTime()
This commit is contained in:
committed by
Chris Cameron
parent
cff1ec8d7e
commit
38c24d42a7
@@ -97,5 +97,15 @@ namespace ICD.Common.Utils
|
||||
|
||||
OnProgramInitializationComplete.Raise(null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets UTC time
|
||||
/// Uses GetLocalTime so Crestron Env will have ms percision
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static DateTime GetUtcTime()
|
||||
{
|
||||
return GetLocalTime().ToUniversalTime();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user