Exemplo 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());
     }
 }
Exemplo n.º 2
0
 internal static DyObject Offset(DyLocalDateTime self) => self.Offset;
Exemplo n.º 3
0
 internal static int Tick(DyLocalDateTime self) => self.Ticks;
Exemplo n.º 4
0
 internal static long TotalTicks(DyLocalDateTime self) => self.TotalTicks;
Exemplo n.º 5
0
 internal static int Second(DyLocalDateTime self) => self.Seconds;
Exemplo n.º 6
0
 internal static int Millisecond(DyLocalDateTime self) => self.Milliseconds;
Exemplo n.º 7
0
 internal static int Hour(DyLocalDateTime self) => self.Hours;
Exemplo n.º 8
0
 internal static int Minute(DyLocalDateTime self) => self.Minutes;
Exemplo n.º 9
0
 internal static int DayOfYear(DyLocalDateTime self) => self.DayOfYear;
Exemplo n.º 10
0
 internal static string DayOfWeek(DyLocalDateTime self) => self.DayOfWeek;
Exemplo n.º 11
0
 internal static int Day(DyLocalDateTime self) => self.Day;
Exemplo n.º 12
0
 internal static int Month(DyLocalDateTime self) => self.Month;
Exemplo n.º 13
0
 internal static int Year(DyLocalDateTime self) => self.Year;