Beispiel #1
0
			public MonthDay(ExsltDateTime inS) : base(inS) { }
Beispiel #2
0
			public Day(ExsltDateTime inS) : base(inS) { }
Beispiel #3
0
			public YearTZ(ExsltDateTime inS) : base(inS) { }
Beispiel #4
0
			public YearMonth(ExsltDateTime inS) : base(inS) { }
Beispiel #5
0
		/// <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;
		}
Beispiel #6
0
			/// <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;
			}