UniversialTicksToJavaScriptTicks() private static method

private static UniversialTicksToJavaScriptTicks ( long universialTicks ) : long
universialTicks long
return long
Exemplo n.º 1
0
        internal static long ConvertDateTimeToJavaScriptTicks(DateTime dateTime, bool convertToUtc)
        {
            long universialTicks = convertToUtc ? DateTimeUtils.ToUniversalTicks(dateTime) : dateTime.Ticks;

            return(DateTimeUtils.UniversialTicksToJavaScriptTicks(universialTicks));
        }
Exemplo n.º 2
0
        internal static long ConvertDateTimeToJavaScriptTicks(DateTime dateTime, TimeSpan offset)
        {
            long universialTicks = DateTimeUtils.ToUniversalTicks(dateTime, offset);

            return(DateTimeUtils.UniversialTicksToJavaScriptTicks(universialTicks));
        }