예제 #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;
 }