feat: GetUtcTime()

This commit is contained in:
Drew Tingen
2019-09-27 15:45:21 -04:00
committed by Chris Cameron
parent cff1ec8d7e
commit 38c24d42a7
2 changed files with 13 additions and 0 deletions

View File

@@ -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();
}
}
}