public MonthDay(ExsltDateTime inS) : base(inS) { }
public Day(ExsltDateTime inS) : base(inS) { }
public YearTZ(ExsltDateTime inS) : base(inS) { }
public YearMonth(ExsltDateTime inS) : base(inS) { }
/// <summary> /// Helper method for date:seconds() that takes an ExsltDateTime. /// </summary> /// <param name="d"></param> /// <returns>difference in seconds between the specified date and the /// epoch (1970-01-01T00:00:00Z)</returns> private double seconds(ExsltDateTime d) { DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, CultureInfo.InvariantCulture.Calendar); return d.ToUniversalTime().Subtract(epoch).TotalSeconds; }
/// <summary> /// Exslt Copy constructor /// Initialize the structure with the date, time and timezone in the string. /// </summary> /// <param name="inS">An ExsltDateTime</param> public ExsltDateTime(ExsltDateTime inS) { d = inS.d; ts = inS.ts; }