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