diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e28a44b7..10590924a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # CHANGELOG +## 0.3.0 + +#### Features + +- Added `iosSimulatorArm64`, `watchosSimulatorArm64`, `tvosSimulatorArm64`, `macosArm64` target support ([141](https://github.com/Kotlin/kotlinx-datetime/issues/141), [144](https://github.com/Kotlin/kotlinx-datetime/issues/144)). + +#### Changes + +- `ZoneOffset` was replaced by two other classes: `FixedOffsetDateTime`, which represents a time zone with a fixed offset, and `UtcOffset`, which represents just the UTC offset ([PR#125](https://github.com/Kotlin/kotlinx-datetime/pull/125)). +- The `DayBased` and `MonthBased` subclasses of `DateTimeUnit.DateBased` are now accessed as `DateTimeUnit.DayBased` and `DateTimeUnit.MonthBased` as opposed to `DateTimeUnit.DateBased.DayBased` and `DateTimeUnit.DateBased.MonthBased` respectively ([PR#131](https://github.com/Kotlin/kotlinx-datetime/pull/131)). + ## 0.2.1 #### Fixes diff --git a/README.md b/README.md index e0edf69b0..4443fa53f 100644 --- a/README.md +++ b/README.md @@ -36,13 +36,14 @@ The library provides the basic set of types for working with date and time: - `Clock` to obtain the current instant; - `LocalDateTime` to represent date and time components without a reference to the particular time zone; - `LocalDate` to represent the components of date only; -- `TimeZone` and `ZoneOffset` provide time zone information to convert between `Instant` and `LocalDateTime`; +- `TimeZone` and `FixedOffsetTimeZone` provide time zone information to convert between `Instant` and `LocalDateTime`; - `Month` and `DayOfWeek` enums; - `DateTimePeriod` to represent a difference between two instants decomposed into date and time units; - `DatePeriod` is a subclass of `DateTimePeriod` with zero time components, it represents a difference between two LocalDate values decomposed into date units. - `DateTimeUnit` provides a set of predefined date and time units to use in arithmetic operations on `Instant` and `LocalDate`. - +- `UtcOffset` represents the amount of time the local date/time at a particular time zone differs from the date/time at UTC. + ### Type use-cases Here is some basic advice on how to choose which of the date-carrying types to use in what cases: @@ -295,7 +296,7 @@ kotlin { sourceSets { commonMain { dependencies { - implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.2.1") + implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.3.0") } } } @@ -306,7 +307,7 @@ kotlin { ```groovy dependencies { - implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.2.1") + implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.3.0") } ``` @@ -346,7 +347,7 @@ Add a dependency to the `` element. Note that you need to use the org.jetbrains.kotlinx kotlinx-datetime-jvm - 0.2.1 + 0.3.0 ``` diff --git a/gradle.properties b/gradle.properties index d93f2a96a..d690274f7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ org.gradle.jvmargs=-Xmx1G -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 group=org.jetbrains.kotlinx -version=0.2.1 +version=0.3.0 versionSuffix=SNAPSHOT kotlinVersion=1.5.0