Пример #1
0
 internal static long ConvertDateTimeToJavaScriptTicks(DateTime dateTime, bool convertToUtc)
 {
     return(DateTimeUtils.UniversialTicksToJavaScriptTicks(convertToUtc
 ? DateTimeUtils.ToUniversalTicks(dateTime)
 : dateTime.Ticks));
 }
Пример #2
0
 internal static long ConvertDateTimeToJavaScriptTicks(DateTime dateTime, TimeSpan offset)
 {
     return(DateTimeUtils.UniversialTicksToJavaScriptTicks(DateTimeUtils.ToUniversalTicks(dateTime, offset)));
 }