示例#1
0
        JsDateEx Clone2(JsNumber totalMs)
        {
            var x = new JsDateEx(totalMs);

            x._Kind = _Kind;
            return(x);
        }
示例#2
0
        JsDateEx Clone()
        {
            var x = new JsDateEx(valueOf());

            x._Kind = _Kind;
            return(x);
        }
示例#3
0
 public JsImplDateTime(int year, int month, int day)
 {
     var x = new JsDateEx();
     x.Year = year;
     x.Month = month;
     x.Day = day;
     JsContext.@return(x);
 }
示例#4
0
        public JsImplDateTime(int year, int month, int day)
        {
            var x = new JsDateEx();

            x.Year  = year;
            x.Month = month;
            x.Day   = day;
            JsContext.@return(x);
        }
示例#5
0
 public JsImplDateTime(int year, int month, int day, int hour, int minute, int second, DateTimeKind kind)
 {
     JsDateEx x;
     if (kind == DateTimeKind.Utc)
     {
         x = new JsDateEx(JsDate.UTC(year, month - 1, day, hour, minute, second));
     }
     else
     {
         x = new JsDateEx(year, month - 1, day, hour, minute, second);
     }
     x._Kind = kind;
     JsContext.@return(x);
 }
示例#6
0
        public JsImplDateTime(int year, int month, int day, int hour, int minute, int second, DateTimeKind kind)
        {
            JsDateEx x;

            if (kind == DateTimeKind.Utc)
            {
                x = new JsDateEx(JsDate.UTC(year, month - 1, day, hour, minute, second));
            }
            else
            {
                x = new JsDateEx(year, month - 1, day, hour, minute, second);
            }
            x._Kind = kind;
            JsContext.@return(x);
        }
示例#7
0
        public JsImplDateTime(int year, int month, int day, int hour, int minute, int second)
        {
            var x = new JsDateEx(year, month - 1, day, hour, minute, second);

            JsContext.@return(x);
        }
示例#8
0
 public JsImplDateTime(int year, int month, int day, int hour, int minute, int second)
 {
     var x = new JsDateEx(year, month - 1, day, hour, minute, second);
     JsContext.@return(x);
 }
示例#9
0
 public int CompareTo(JsDateEx value)
 {
     return(valueOf() - value.valueOf());
 }
示例#10
0
 public int CompareTo(JsDateEx value)
 {
     return valueOf() - value.valueOf();
 }
示例#11
0
 JsDateEx Clone2(JsNumber totalMs)
 {
     var x = new JsDateEx(totalMs);
     x._Kind = _Kind;
     return x;
 }
示例#12
0
 JsDateEx Clone()
 {
     var x = new JsDateEx(valueOf());
     x._Kind = _Kind;
     return x;
 }