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()); } }
internal static DyObject Offset(DyLocalDateTime self) => self.Offset;
internal static int Tick(DyLocalDateTime self) => self.Ticks;
internal static long TotalTicks(DyLocalDateTime self) => self.TotalTicks;
internal static int Second(DyLocalDateTime self) => self.Seconds;
internal static int Millisecond(DyLocalDateTime self) => self.Milliseconds;
internal static int Hour(DyLocalDateTime self) => self.Hours;
internal static int Minute(DyLocalDateTime self) => self.Minutes;
internal static int DayOfYear(DyLocalDateTime self) => self.DayOfYear;
internal static string DayOfWeek(DyLocalDateTime self) => self.DayOfWeek;
internal static int Day(DyLocalDateTime self) => self.Day;
internal static int Month(DyLocalDateTime self) => self.Month;
internal static int Year(DyLocalDateTime self) => self.Year;