public Value(Timestamp encoded) { int dayOfYear; encoded.GetDatePart(out this.Year, out this.Month, out this.Day, out dayOfYear); this.Hour = encoded.Hour; this.Minute = encoded.Minute; this.Second = encoded.Second; this.Nanoseconds = encoded.nanoseconds; }