Rhino.NativeDate.DaylightSavingTA C# (CSharp) Method

DaylightSavingTA() private static method

private static DaylightSavingTA ( double t ) : double
t double
return double
		private static double DaylightSavingTA(double t)
		{
			// Another workaround!  The JRE doesn't seem to know about DST
			// before year 1 AD, so we map to equivalent dates for the
			// purposes of finding DST. To be safe, we do this for years
			// before 1970.
			if (t < 0.0)
			{
				int year = EquivalentYear(YearFromTime(t));
				double day = MakeDay(year, MonthFromTime(t), DateFromTime(t));
				t = MakeDate(day, TimeWithinDay(t));
			}
			DateTime date = Sharpen.Extensions.CreateDate((long)t);
			if (thisTimeZone.InDaylightTime(date))
			{
				return msPerHour;
			}
			else
			{
				return 0;
			}
		}