Noda Time
Show / Hide Table of Contents

API changes from 1.4.x to 2.0.x

New classes

  • NodaTime.DateAdjusters
  • NodaTime.DateInterval
  • NodaTime.Extensions.DateTimeExtensions
  • NodaTime.Extensions.DateTimeOffsetExtensions
  • NodaTime.Extensions.DateTimeZoneProviderExtensions
  • NodaTime.Extensions.DayOfWeekExtensions
  • NodaTime.Extensions.IsoDayOfWeekExtensions
  • NodaTime.Extensions.StopwatchExtensions
  • NodaTime.Extensions.TimeSpanExtensions
  • NodaTime.Text.CompositePatternBuilder<T>
  • NodaTime.TimeAdjusters
  • NodaTime.TimeZones.TzdbZone1970Location
  • NodaTime.TimeZones.TzdbZone1970Location.Country

New structs

  • NodaTime.AnnualDate

New type members, by type

New members in NodaTime.CalendarSystem

  • GetDaysInYear(Int32)
  • PersianArithmetic
  • PersianAstronomical
  • UmAlQura

New members in NodaTime.DateTimeZone

  • GetZoneIntervals(Interval, ZoneEqualityComparer.Options)

New members in NodaTime.Duration

  • Days
  • Divide(Duration, Duration)
  • Divide(Duration, Double)
  • FromDays(Double)
  • FromHours(Double)
  • FromMilliseconds(Double)
  • FromMinutes(Double)
  • FromNanoseconds(Double)
  • FromNanoseconds(Int64)
  • FromNanoseconds(BigInteger)
  • FromSeconds(Double)
  • FromTicks(Double)
  • Hours
  • MaxValue
  • Milliseconds
  • Minutes
  • MinValue
  • Multiply(Duration, Double)
  • NanosecondOfDay
  • operator /(Duration, Duration)
  • operator /(Duration, Double)
  • operator *(Duration, Double)
  • Seconds
  • SubsecondNanoseconds
  • SubsecondTicks
  • ToBigIntegerNanoseconds()
  • ToInt64Nanoseconds()
  • TotalDays
  • TotalHours
  • TotalMilliseconds
  • TotalMinutes
  • TotalNanoseconds
  • TotalSeconds
  • TotalTicks

New members in NodaTime.IClock

  • GetCurrentInstant()

New members in NodaTime.Instant

  • FromJulianDate(Double)
  • PlusNanoseconds(Int64)
  • ToJulianDate()
  • ToUnixTimeMilliseconds()
  • ToUnixTimeSeconds()

New members in NodaTime.Interval

  • Interval(Nullable<Instant>, Nullable<Instant>)
  • HasEnd
  • HasStart

New members in NodaTime.LocalDate

  • AtStartOfDayInZone(DateTimeZone)
  • FromDateTime(DateTime, CalendarSystem)
  • FromDateTime(DateTime)
  • FromYearMonthWeekAndDay(Int32, Int32, Int32, IsoDayOfWeek)
  • Minus(LocalDate)
  • operator -(LocalDate, LocalDate)
  • Subtract(LocalDate, LocalDate)
  • ToDateTimeUnspecified()
  • With(Func<LocalDate, LocalDate>)

New members in NodaTime.LocalDateTime

  • FromDateTime(DateTime, CalendarSystem)
  • Minus(LocalDateTime)
  • NanosecondOfDay
  • NanosecondOfSecond
  • operator -(LocalDateTime, LocalDateTime)
  • PlusNanoseconds(Int64)
  • Subtract(LocalDateTime, LocalDateTime)
  • With(Func<LocalDate, LocalDate>)
  • With(Func<LocalTime, LocalTime>)

New members in NodaTime.LocalTime

  • FromHourMinuteSecondNanosecond(Int32, Int32, Int32, Int64)
  • MaxValue
  • Minus(LocalTime)
  • MinValue
  • NanosecondOfDay
  • NanosecondOfSecond
  • operator -(LocalTime, LocalTime)
  • PlusNanoseconds(Int64)
  • Subtract(LocalTime, LocalTime)
  • With(Func<LocalTime, LocalTime>)

New members in NodaTime.NodaConstants

  • JulianEpoch
  • NanosecondsPerDay
  • NanosecondsPerHour
  • NanosecondsPerMillisecond
  • NanosecondsPerMinute
  • NanosecondsPerSecond
  • NanosecondsPerTick
  • NanosecondsPerWeek

New members in NodaTime.Offset

  • FromNanoseconds(Int64)
  • FromSeconds(Int32)
  • FromTimeSpan(TimeSpan)
  • Nanoseconds
  • Seconds

New members in NodaTime.OffsetDateTime

  • Add(OffsetDateTime, Duration)
  • Minus(Duration)
  • Minus(OffsetDateTime)
  • NanosecondOfDay
  • NanosecondOfSecond
  • operator +(OffsetDateTime, Duration)
  • operator -(OffsetDateTime, Duration)
  • operator -(OffsetDateTime, OffsetDateTime)
  • Plus(Duration)
  • PlusHours(Int32)
  • PlusMilliseconds(Int64)
  • PlusMinutes(Int32)
  • PlusNanoseconds(Int64)
  • PlusSeconds(Int64)
  • PlusTicks(Int64)
  • Subtract(OffsetDateTime, Duration)
  • Subtract(OffsetDateTime, OffsetDateTime)
  • With(Func<LocalDate, LocalDate>)
  • With(Func<LocalTime, LocalTime>)

New members in NodaTime.OffsetDateTime.Comparer

  • Equals(OffsetDateTime, OffsetDateTime)
  • GetHashCode(OffsetDateTime)

New members in NodaTime.Period

  • FromNanoseconds(Int64)
  • Nanoseconds

New members in NodaTime.PeriodBuilder

  • Nanoseconds

New members in NodaTime.PeriodUnits

  • Nanoseconds

New members in NodaTime.SystemClock

  • GetCurrentInstant()

New members in NodaTime.Text.DurationPattern

  • AppendFormat(Duration, StringBuilder)

New members in NodaTime.Text.InstantPattern

  • AppendFormat(Instant, StringBuilder)

New members in NodaTime.Text.IPattern<T>

  • AppendFormat(T, StringBuilder)

New members in NodaTime.Text.LocalDatePattern

  • AppendFormat(LocalDate, StringBuilder)
  • WithCalendar(CalendarSystem)

New members in NodaTime.Text.LocalDateTimePattern

  • AppendFormat(LocalDateTime, StringBuilder)
  • FullRoundtripWithoutCalendar
  • WithCalendar(CalendarSystem)

New members in NodaTime.Text.LocalTimePattern

  • AppendFormat(LocalTime, StringBuilder)

New members in NodaTime.Text.OffsetDateTimePattern

  • AppendFormat(OffsetDateTime, StringBuilder)
  • WithCalendar(CalendarSystem)

New members in NodaTime.Text.OffsetPattern

  • AppendFormat(Offset, StringBuilder)

New members in NodaTime.Text.PeriodPattern

  • AppendFormat(Period, StringBuilder)

New members in NodaTime.Text.ZonedDateTimePattern

  • AppendFormat(ZonedDateTime, StringBuilder)
  • WithCalendar(CalendarSystem)

New members in NodaTime.TimeZones.BclDateTimeZoneSource

  • GetSystemDefaultId()

New members in NodaTime.TimeZones.Cldr.MapZone

  • Equals(MapZone)
  • Equals(Object)
  • GetHashCode()
  • ToString()

New members in NodaTime.TimeZones.IDateTimeZoneSource

  • GetSystemDefaultId()

New members in NodaTime.TimeZones.Resolvers

  • ReturnForwardShifted

New members in NodaTime.TimeZones.TzdbDateTimeZoneSource

  • GetSystemDefaultId()
  • Zone1970Locations

New members in NodaTime.TimeZones.ZoneInterval

  • ZoneInterval(String, Nullable<Instant>, Nullable<Instant>, Offset, Offset)
  • HasEnd
  • HasStart

New members in NodaTime.ZonedDateTime

  • Minus(ZonedDateTime)
  • NanosecondOfDay
  • NanosecondOfSecond
  • operator -(ZonedDateTime, ZonedDateTime)
  • PlusHours(Int32)
  • PlusMilliseconds(Int64)
  • PlusMinutes(Int32)
  • PlusNanoseconds(Int64)
  • PlusSeconds(Int64)
  • PlusTicks(Int64)
  • Subtract(ZonedDateTime, ZonedDateTime)
  • WithCalendar(CalendarSystem)

New members in NodaTime.ZonedDateTime.Comparer

  • Equals(ZonedDateTime, ZonedDateTime)
  • GetHashCode(ZonedDateTime)

Removed classes

  • NodaTime.ClockExtensions
  • NodaTime.TimeZones.DateTimeZoneSourceExtensions

Removed type members, by type

Removed members in NodaTime.Calendars.Era

  • AnnoMartyrm

Removed members in NodaTime.CalendarSystem

  • GetCopticCalendar(Int32)
  • GetGregorianCalendar(Int32)
  • GetJulianCalendar(Int32)
  • GetMaxMonth(Int32)
  • GetPersianCalendar()
  • UsesIsoDayOfWeek

Removed members in NodaTime.DateTimeZone

  • Equals(DateTimeZone)
  • Equals(Object)
  • EqualsImpl(DateTimeZone)
  • GetHashCode()

Removed members in NodaTime.DateTimeZoneProviders

  • Default

Removed members in NodaTime.Duration

  • FromHours(Int64)
  • FromStandardDays(Int64)
  • FromStandardWeeks(Int64)
  • Ticks

Removed members in NodaTime.IClock

  • Now

Removed members in NodaTime.Instant

  • Instant(Int64)
  • FromMillisecondsSinceUnixEpoch(Int64)
  • FromSecondsSinceUnixEpoch(Int64)
  • FromTicksSinceUnixEpoch(Int64)
  • Ticks

Removed members in NodaTime.LocalDate

  • IsoDayOfWeek
  • WeekOfWeekYear
  • WeekYear
  • YearOfCentury

Removed members in NodaTime.LocalDateTime

  • LocalDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, CalendarSystem)
  • LocalDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)
  • CenturyOfEra
  • IsoDayOfWeek
  • WeekOfWeekYear
  • WeekYear
  • YearOfCentury

Removed members in NodaTime.LocalTime

  • LocalTime(Int32, Int32, Int32, Int32, Int32)
  • LocalDateTime

Removed members in NodaTime.NodaConstants

  • DaysPerStandardWeek
  • HoursPerStandardDay
  • HoursPerStandardWeek
  • MillisecondsPerStandardDay
  • MillisecondsPerStandardWeek
  • MinutesPerStandardDay
  • MinutesPerStandardWeek
  • SecondsPerStandardDay
  • TicksPerStandardDay
  • TicksPerStandardWeek

Removed members in NodaTime.OffsetDateTime

  • IsoDayOfWeek
  • WeekOfWeekYear
  • WeekYear
  • YearOfCentury

Removed members in NodaTime.Period

  • FromDays(Int64)
  • FromMillseconds(Int64)
  • FromMonths(Int64)
  • FromWeeks(Int64)
  • FromYears(Int64)

Removed members in NodaTime.SystemClock

  • Now

Removed members in NodaTime.Text.DurationPattern

  • RoundtripPattern

Removed members in NodaTime.Text.InstantPattern

  • CreateNumericPattern(CultureInfo, Boolean)
  • ExtendedIsoPattern
  • GeneralPattern
  • WithMinMaxLabels(String, String)

Removed members in NodaTime.Text.LocalDatePattern

  • IsoPattern

Removed members in NodaTime.Text.LocalDateTimePattern

  • BclRoundtripPattern
  • ExtendedIsoPattern
  • FullRoundtripPattern
  • GeneralIsoPattern

Removed members in NodaTime.Text.LocalTimePattern

  • ExtendedIsoPattern

Removed members in NodaTime.Text.OffsetDateTimePattern

  • ExtendedIsoPattern
  • FullRoundtripPattern
  • GeneralIsoPattern
  • Rfc3339Pattern

Removed members in NodaTime.Text.OffsetPattern

  • GeneralInvariantPattern
  • GeneralInvariantPatternWithZ

Removed members in NodaTime.Text.PeriodPattern

  • NormalizingIsoPattern
  • RoundtripPattern

Removed members in NodaTime.Text.ZonedDateTimePattern

  • ExtendedFormatOnlyIsoPattern
  • GeneralFormatOnlyIsoPattern

Removed members in NodaTime.TimeZones.BclDateTimeZone

  • EqualsImpl(DateTimeZone)
  • GetHashCode()

Removed members in NodaTime.TimeZones.BclDateTimeZoneSource

  • MapTimeZoneId(TimeZoneInfo)

Removed members in NodaTime.TimeZones.IDateTimeZoneSource

  • MapTimeZoneId(TimeZoneInfo)

Removed members in NodaTime.TimeZones.TzdbDateTimeZoneSource

  • TzdbDateTimeZoneSource(ResourceManager)
  • TzdbDateTimeZoneSource(ResourceSet)
  • TzdbDateTimeZoneSource(String, Assembly)
  • TzdbDateTimeZoneSource(String)
  • MapTimeZoneId(TimeZoneInfo)

Removed members in NodaTime.TimeZones.ZoneInterval

  • ZoneInterval(String, Instant, Instant, Offset, Offset)

Removed members in NodaTime.ZonedClock

  • IClock.Now

Removed members in NodaTime.ZonedDateTime

  • CenturyOfEra
  • CompareTo(ZonedDateTime)
  • IsoDayOfWeek
  • operator >(ZonedDateTime, ZonedDateTime)
  • operator >=(ZonedDateTime, ZonedDateTime)
  • operator <(ZonedDateTime, ZonedDateTime)
  • operator <=(ZonedDateTime, ZonedDateTime)
  • IComparable.CompareTo(Object)
  • WeekOfWeekYear
  • WeekYear
  • YearOfCentury
In this article
Back to top Generated by DocFX