@@ -8,7 +8,7 @@ import kotlinx.cinterop.*
8
8
import platform.Foundation.*
9
9
10
10
/* *
11
- * Converts the Instant to an instance of [NSDate].
11
+ * Converts the [ Instant] to an instance of [NSDate].
12
12
*
13
13
* The conversion is lossy: Darwin uses millisecond precision to represent dates, and [Instant] allows for nanosecond
14
14
* resolution.
@@ -24,7 +24,7 @@ public fun Instant.toNSDate(): NSDate {
24
24
}
25
25
26
26
/* *
27
- * Builds the corresponding [Instant].
27
+ * Converts the [NSDate] to the corresponding [Instant].
28
28
*
29
29
* Even though Darwin only uses millisecond precision, it is possible that [date] uses larger resolution, storing
30
30
* microseconds or even nanoseconds. In this case, the sub-millisecond parts of [date] are rounded to the nearest
@@ -37,7 +37,7 @@ public fun NSDate.toKotlinInstant(): Instant {
37
37
}
38
38
39
39
/* *
40
- * Converts the time zone to [NSTimeZone].
40
+ * Converts the [TimeZone] to [NSTimeZone].
41
41
*
42
42
* If the time zone is represented as a fixed number of seconds from UTC+0 (for example, if it is the result of a call
43
43
* to [TimeZone.offset]) and the offset is not given in even minutes but also includes seconds, this method throws
@@ -55,7 +55,7 @@ public fun TimeZone.toNSTimeZone(): NSTimeZone = if (this is ZoneOffset) {
55
55
}
56
56
57
57
/* *
58
- * Builds the corresponding [TimeZone].
58
+ * Converts the [NSTimeZone] to the corresponding [TimeZone].
59
59
*/
60
60
public fun NSTimeZone.toKotlinTimeZone (): TimeZone = TimeZone .of(name)
61
61
0 commit comments