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

@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Added
- IcdEnvironment.GetUtcTime() to get UTC representaiton of current time.
## [9.9.0] - 2019-09-16
### Added
- Added a method for converting 24 hour to 12 hour format

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