Esempio n. 1
0
 public static NSJSDateTime operator -(NSJSDateTime x, long y)
 {
     if (x == null)
     {
         return null;
     }
     long ticks = unchecked((long)x) - y;
     if (ticks < 0)
     {
         ticks = 0;
     }
     return NSJSDateTime.New(x.VirtualMachine, ticks);
 }
Esempio n. 2
0
 public static NSJSDateTime New(NSJSVirtualMachine machine, long ticks)
 {
     return NSJSDateTime.New(machine, NSJSDateTime.LocalDateToDateTime(ticks));
 }
Esempio n. 3
0
 public void SetReturnValue(DateTime value)
 {
     this.SetReturnValue((NSJSValue)NSJSDateTime.New(this.VirtualMachine, value));
 }
Esempio n. 4
0
 public void Add(DateTime value)
 {
     this.Add((NSJSValue)NSJSDateTime.New(this.VirtualMachine, value));
 }