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