public static SBool DateTimeIsBetweenDateTimes(SDateTime d, SDateTime start, SDateTime end) { return(new SBool(d.Value >= start.Value && d.Value <= end.Value)); }
public static SDateTime DateTimeAddMonths(SDateTime d, SNumber n) { return(new SDateTime(d.Value.AddMonths((int)n.Value))); }
public static SBool DateTimeIsAfterDateTime(SDateTime d1, SDateTime d2) { return(new SBool(d1.Value > d2.Value)); }
public static SBool DateTimeIsBeforeDateTime(SDateTime d1, SDateTime d2) { return(new SBool(d1.Value < d2.Value)); }
public static SDuration DurationBetweenDateTimes(SDateTime d1, SDateTime d2) { return(new SDuration(d1.Value - d2.Value)); }
public static SBool DateTimeIsNotEqualToDateTime(SDateTime d1, SDateTime d2) { return(new SBool(d1.Value != d2.Value)); }
public static SNumber DateTimeGetSecond(SDateTime d) { return(new SNumber(d.Value.Second)); }
public static SNumber DateTimeGetMinute(SDateTime d) { return(new SNumber(d.Value.Minute)); }
public static SNumber DateTimeGetHour(SDateTime d) { return(new SNumber(d.Value.Hour)); }
public static SNumber DateTimeGetDay(SDateTime d) { return(new SNumber(d.Value.Day)); }
public static SNumber DateTimeGetMonth(SDateTime d) { return(new SNumber(d.Value.Month)); }