よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public static TimeSpan TimeActive(this ICall Call) { // This will change - we will also need to create a TODO for Sunshine Date Time Law var tzCurrent = TimeZoneInfo.FindSystemTimeZoneById(@"Eastern Standard Time"); var dtCurrent = DateTime.UtcNow; var dtLocal = TimeZoneInfo.ConvertTimeFromUtc(dtCurrent, tzCurrent); var dtCall = Call.EntryAsTimestamp(); var tsDifference = dtLocal.Subtract(dtCall); return(tsDifference); }