Esempio n. 1
0
 internal static DyObject Parse(ExecutionContext ctx, string input, string format)
 {
     try
     {
         return(DyLocalDateTime.Parse(ctx.Type <DyLocalDateTimeTypeInfo>(), format, input));
     }
     catch (FormatException)
     {
         return(ctx.ParsingFailed());
     }
     catch (OverflowException)
     {
         return(ctx.Overflow());
     }
 }
Esempio n. 2
0
 internal static DyObject Offset(DyLocalDateTime self) => self.Offset;
Esempio n. 3
0
 internal static int Tick(DyLocalDateTime self) => self.Ticks;
Esempio n. 4
0
 internal static long TotalTicks(DyLocalDateTime self) => self.TotalTicks;
Esempio n. 5
0
 internal static int Second(DyLocalDateTime self) => self.Seconds;
Esempio n. 6
0
 internal static int Millisecond(DyLocalDateTime self) => self.Milliseconds;
Esempio n. 7
0
 internal static int Hour(DyLocalDateTime self) => self.Hours;
Esempio n. 8
0
 internal static int Minute(DyLocalDateTime self) => self.Minutes;
Esempio n. 9
0
 internal static int DayOfYear(DyLocalDateTime self) => self.DayOfYear;
Esempio n. 10
0
 internal static string DayOfWeek(DyLocalDateTime self) => self.DayOfWeek;
Esempio n. 11
0
 internal static int Day(DyLocalDateTime self) => self.Day;
Esempio n. 12
0
 internal static int Month(DyLocalDateTime self) => self.Month;
Esempio n. 13
0
 internal static int Year(DyLocalDateTime self) => self.Year;