private static UniversialTicksToJavaScriptTicks ( long universialTicks ) : long | ||
universialTicks | long | |
return | long |
internal static long ConvertDateTimeToJavaScriptTicks(DateTime dateTime, bool convertToUtc) { long universialTicks = convertToUtc ? DateTimeUtils.ToUniversalTicks(dateTime) : dateTime.Ticks; return(DateTimeUtils.UniversialTicksToJavaScriptTicks(universialTicks)); }
internal static long ConvertDateTimeToJavaScriptTicks(DateTime dateTime, TimeSpan offset) { long universialTicks = DateTimeUtils.ToUniversalTicks(dateTime, offset); return(DateTimeUtils.UniversialTicksToJavaScriptTicks(universialTicks)); }