{"id":149928,"date":"2021-06-03T03:47:15","date_gmt":"2021-06-03T02:47:15","guid":{"rendered":"https:\/\/blog.jetbrains.com\/kotlin\/2021\/05\/kotlinx-datetime-0-2-0-is-out\/"},"modified":"2021-06-03T03:47:16","modified_gmt":"2021-06-03T02:47:16","slug":"kotlinx-datetime-0-2-0-is-out-ja","status":"publish","type":"kotlin","link":"https:\/\/blog.jetbrains.com\/ja\/kotlin\/2021\/06\/kotlinx-datetime-0-2-0-is-out-ja\/","title":{"rendered":"kotlinx-datetime 0.2.0 \u30ea\u30ea\u30fc\u30b9"},"content":{"rendered":"<p>\u672c\u65e5\u306f\u65e5\u6642\u51e6\u7406\u7528\u306e\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3042\u308a\u3001Kotlin 1.5.0 \u3068\u540c\u6642\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f <code>kotlinx-datetime<\/code> <a class=\"ek-link\" href=\"https:\/\/github.com\/Kotlin\/kotlinx-datetime\/releases\/tag\/v0.2.0\" target=\"_blank\" rel=\"noopener\">0.2.0<\/a> \u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u79c1\u305f\u3061\u306f\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u6700\u521d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6628\u5e74\u306e\u590f\u306b\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u306f\u5b89\u5b9a\u7248\u306e\u30ea\u30ea\u30fc\u30b9\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<code>kotlinx-datetime<\/code> \u306f Kotlin 1.4 \u30aa\u30f3\u30e9\u30a4\u30f3\u30a4\u30d9\u30f3\u30c8\u3067\u3082\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u8a2d\u8a08\u539f\u7406\u3068\u6a5f\u80fd\u306e\u8a73\u7d30\u306f\u3001<a href=\"https:\/\/youtu.be\/YwN0kAMNvXI\" target=\"_blank\" rel=\"noopener\">Ilya Gorbunov \u306b\u3088\u308b\u3053\u3061\u3089\u306e\u8b1b\u6f14<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3 0.2.0 \u306b\u306f\u591a\u6570\u306e\u6539\u5584\u70b9\u304c\u76db\u308a\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><code>kotlinx.serialization<\/code> \u306e\u30b5\u30dd\u30fc\u30c8<\/li>\n<li><code>DateTimePeriod<\/code> \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u6b63\u898f\u5316<\/li>\n<li>UTC \u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u542b\u3080\u6587\u5b57\u5217\u3092\u00a0<code>Instant<\/code>\u00a0\u3068\u3057\u3066\u30d1\u30fc\u30b9\u3059\u308b\u6a5f\u80fd<\/li>\n<\/ul>\n<p><a class=\"ek-link\" href=\"https:\/\/blog.jetbrains.com\/kotlin\/2021\/05\/kotlinx-datetime-0-2-0-is-out\/#give-it-a-try\">\u305c\u3072\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\uff01<\/a> \u2013 \u305f\u3060\u3057\u3001Kotlin \u30d0\u30fc\u30b8\u30e7\u30f3 1.5.0 \u3092\u5fc5\u305a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u3067\u306f\u3001\u5404\u6a5f\u80fd\u3092\u8a73\u3057\u304f\u898b\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u00a0<\/p>\n<div style=\"background-color: #f1f6fe; margin-bottom: 2px; padding: 5px; margin-right: 0%; text-align: left; min-height: px;\">kotlinx-datetime 0.2.0 \u306f\u307e\u3060<a href=\"https:\/\/kotlinlang.org\/docs\/components-stability.html\" target=\"_blank\" rel=\"noopener\">\u5b9f\u9a13\u7684(Experimental)<\/a>\u306a\u3082\u306e\u3067\u3042\u308b\u3053\u3068\u306b\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002 API \u306f\u968f\u6642\u5909\u66f4\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<h2 id=\"kotlinx-serialization-support\">kotlinx.serialization \u306e\u30b5\u30dd\u30fc\u30c8<\/h2>\n<p><code>kotlinx-datetime<\/code> \u306f <code>Instant<\/code>\u3001<code>LocalDate<\/code>\u3001<code>TimeZone<\/code> \u306a\u3069\u3001\u65e5\u6642\u8868\u73fe\u306b\u4f7f\u7528\u3067\u304d\u308b\u72ec\u81ea\u306e<a href=\"https:\/\/github.com\/Kotlin\/kotlinx-datetime#types\" target=\"_blank\" rel=\"noopener\">\u578b<\/a>\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 \u3053\u308c\u3089\u3059\u3079\u3066\u306e\u578b\u306f <a class=\"ek-link\" href=\"https:\/\/github.com\/Kotlin\/kotlinx.serialization\" target=\"_blank\" rel=\"noopener\"><code>kotlinx.serialization<\/code><\/a> \u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30d0\u30fc\u30b8\u30e7\u30f3 0.2.0 \u304b\u3089\u30b7\u30ea\u30a2\u30eb\u5316\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u30fc\u306e\u30bb\u30c3\u30c8\u306f <code>kotlinx.datetime.serializers<\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u542b\u307e\u308c\u3066\u304a\u308a\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u30d0\u30f3\u30c9\u30eb\u3059\u308b\u5f62\u3067\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307b\u3068\u3093\u3069\u306e\u578b\u306b\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u30fc\u304c\u3042\u308a\u307e\u3059\u3002 \u52d5\u4f5c\u3059\u308b\u578b\u306f <code>Instant<\/code>\u3001<code>LocalDate<\/code>\u3001<code>LocalDateTime<\/code>\u3001<code>DateTimePeriod<\/code>\u3001<code>DatePeriod<\/code>\u3001<code>TimeZone<\/code>\u3001<code>ZoneOffset<\/code> \u3067\u3059\u3002 \u3053\u308c\u3089\u306f\u660e\u793a\u7684\u306a\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3053\u3068\u306a\u304f Serializable \u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"kotlin-code\" style=\"visibility: hidden; padding: 36px 0;\" data-highlight-only=\"true\">import kotlinx.datetime.LocalDate\nimport kotlinx.serialization.Serializable\nimport kotlinx.serialization.json.Json\nimport kotlinx.serialization.encodeToString\n\n@Serializable\nclass Person(val name: String, val birthDate: LocalDate)\n\nfun main() {\n    val harry = Person(\"Harry\", LocalDate(1980, 7, 31))\n    println(Json.encodeToString(harry))\n    \/\/ {\"name\":\"Harry\",\"birthDate\":\"1980-07-31\"}\n}\n<\/pre>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u30fc\u306f\u578b\u306e <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_8601\" target=\"_blank\" rel=\"noopener\">ISO 8601<\/a> \u6587\u5b57\u5217\u8868\u8a18\u306b\u57fa\u3065\u3044\u3066\u304a\u308a\u3001<code>toString()<\/code>\/<code>parse()<\/code> \u3092\u4f7f\u7528\u3057\u3066\u5024\u306e\u30b7\u30ea\u30a2\u30eb\u5316\u3068\u9006\u30b7\u30ea\u30a2\u30eb\u5316\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e00\u90e8\u306e\u578b\u306b\u306f\u5225\u306e\u30b7\u30ea\u30a2\u30eb\u5316\u6226\u7565\u3092\u4f7f\u7528\u3067\u304d\u308b\u4ee3\u66ff\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u30fc\u304c\u3042\u308a\u3001\u3053\u306e\u3088\u3046\u306a\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u30fc\u306f\u7279\u5b9a\u306e\u5f62\u5f0f\u306b\u304a\u3044\u3066\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u30fc\u3088\u308a\u3082\u52b9\u7387\u6027\u306b\u512a\u308c\u3066\u3044\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3001<code>LocalDate<\/code> \u306f <code>LocalDateComponentSerializer<\/code> \u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5358\u4f4d\u3067\u306e\u30b7\u30ea\u30a2\u30eb\u5316\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u30fc\u3092\u660e\u793a\u7684\u306b\u9078\u629e\u3059\u308b\u306b\u306f\u3001\u901a\u5e38\u306e <a href=\"https:\/\/kotlin.github.io\/kotlinx.serialization\/kotlinx-serialization-core\/kotlinx-serialization-core\/kotlinx.serialization\/-serializable\/index.html\" target=\"_blank\" rel=\"noopener\"><code>@Serializable(with = ...)<\/code><\/a> \u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u307e\u305f\u3001<a href=\"https:\/\/github.com\/Kotlin\/kotlinx.serialization\/blob\/master\/docs\/serializers.md#contextual-serialization\" target=\"_blank\" rel=\"noopener\">Contextual \u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u30fc<\/a>\u3092\u4f7f\u7528\u3057\u3001\u3053\u306e\u9078\u629e\u80a2\u3092\u5b9f\u884c\u6642\u307e\u3067\u5ef6\u671f\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"kotlin-code\" style=\"visibility: hidden; padding: 36px 0;\" data-highlight-only=\"true\">import kotlinx.datetime.LocalDate\nimport kotlinx.datetime.serializers.LocalDateComponentSerializer\nimport kotlinx.serialization.Serializable\nimport kotlinx.serialization.json.Json\nimport kotlinx.serialization.encodeToString\n\n@Serializable\nclass Person(\n    val name: String,\n    @Serializable(with = LocalDateComponentSerializer::class)\n    val birthDate: LocalDate\n)\n\nfun main() {\n    val harry = Person(\"Harry\", LocalDate(1980, 7, 31))\n    println(Json.encodeToString(harry))\n    \/\/ {\"name\":\"Harry\",\"birthday\":{\"year\":1980,\"month\":7,\"day\":31}}\n}\n<\/pre>\n<p>\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u30fc\u3092\u6301\u305f\u306a\u3044\u578b\u3082\u3042\u308a\u307e\u3059\u3002<code>DayOfWeek<\/code> \u3068 <code>Month<\/code> \u306f <code>kotlinx.serialization<\/code> \u306b\u3088\u3063\u3066\u901a\u5e38\u306e\u5217\u6319\u578b\u3068\u3057\u3066\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><code>kotlinx.serialization<\/code> \u304c <code>kotlinx-datetime<\/code> \u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u4f9d\u5b58\u95a2\u4fc2\u3067\u3042\u308b\u3053\u3068\u306f\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002 \u30b7\u30ea\u30a2\u30eb\u5316\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001<code>kotlinx-datetime<\/code> \u306b\u52a0\u3048\u3066 <a href=\"https:\/\/github.com\/Kotlin\/kotlinx.serialization#dependency-on-the-json-library\" target=\"_blank\" rel=\"noopener\"><code>kotlinx-serialization-core<\/code><\/a> \u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f9d\u5b58\u95a2\u4fc2\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>DateTimePeriod \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u6b63\u898f\u5316<\/h2>\n<p><code>DateTimePeriod<\/code> \u306f\u3001\u3042\u308b 2 \u3064\u306e\u6642\u70b9\u306e\u9593\u306e\u6642\u9593\u3092\u3055\u307e\u3056\u307e\u306a\u6642\u9593\u5358\u4f4d (\u5e74\u3001\u6708\u3001\u65e5\u3001\u6642\u9593\u3001\u5206\u3001\u79d2\u3001\u30ca\u30ce\u79d2) \u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u8868\u73fe\u3057\u307e\u3059\u3002 \u3053\u308c\u3089\u306e\u6642\u9593\u5358\u4f4d\u306f\u3001\u305d\u308c\u305e\u308c\u306e\u30af\u30e9\u30b9\u306b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u304b\u3089\u5024\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306e\u5bfe\u5fdc\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001<code>DateTimePeriod(months = 14, minutes = 90)<\/code> \u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5f93\u6765\u3001\u3053\u308c\u3089\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u72ec\u7acb\u3057\u3066\u304a\u308a\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u306b\u6e21\u3055\u308c\u305f\u5024\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\u3060\u3051\u3067\u3057\u305f\u3002 \u3057\u304b\u3057\u3001\u3053\u308c\u306f\u7570\u306a\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5024\u3092\u6301\u3061\u306a\u304c\u3089\u540c\u3058 ISO \u8868\u73fe\u3092\u6301\u3064 2 \u3064\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u767a\u751f\u3059\u308b\u539f\u56e0\u3068\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002 \u305d\u306e\u3088\u3046\u306a\u5024\u3092\u30b7\u30ea\u30a2\u30eb\u5316\u3057\u3066\u304b\u3089\u9006\u30b7\u30ea\u30a2\u30eb\u5316\u3059\u308b\u3068\u3001\u5143\u306e\u5024\u3068\u306f\u7570\u306a\u308b\u5024\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f <code>DateTimePeriod<\/code> \u306e\u5185\u90e8\u8868\u73fe\u3092\u5909\u66f4\u3057\u3001\u305d\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u6b63\u898f\u5316\u624b\u9806\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002 \u3053\u308c\u306b\u3088\u308a\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u5185\u90e8\u7684\u306b\u30ca\u30ce\u79d2\u3001\u65e5\u3001\u304a\u3088\u3073\u6708\u306e\u7d44\u307f\u5408\u308f\u305b\u306b\u6b63\u898f\u5316\u3055\u308c\u307e\u3057\u305f\u3002\u305d\u306e\u7d50\u679c\u3001\u6700\u521d\u306e\u554f\u984c\u304c\u89e3\u6c7a\u3055\u308c\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e getter \u304c\u8fd4\u3059\u5024\u304c\u5927\u304d\u3044\u5834\u5408\u3067\u3082\u8aad\u307f\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"kotlin-code\" style=\"visibility: hidden; padding: 36px 0;\" data-highlight-only=\"true\">val period1 = DateTimePeriod(months = 14, minutes = 90)\nval period2 = DateTimePeriod(years = 1, months = 2, hours = 1, minutes = 30)\nprintln(period1 == period2)  \/\/ true\nprintln(period1)             \/\/ P1Y2MT1H30M \/\/ ISO-8601\nprintln(period2)             \/\/ P1Y2MT1H30M \/\/ ISO-8601\nprintln(period1.years)       \/\/ 1\nprintln(period1.months)      \/\/ 2\nprintln(period1.days)        \/\/ 0\nprintln(period1.hours)       \/\/ 1\nprintln(period1.minutes)     \/\/ 30\nprintln(period1.seconds)     \/\/ 0\nprintln(period1.nanoseconds) \/\/ 0\n<\/pre>\n<h2>UTC \u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u542b\u3080\u6587\u5b57\u5217\u3092 Instant \u3068\u3057\u3066\u30d1\u30fc\u30b9<\/h2>\n<p><code>Instant<\/code> \u30af\u30e9\u30b9\u306f\u3001\u3042\u308b\u6642\u70b9\u306e\u6642\u9593\u3092\u8868\u3057\u307e\u3059\u3002 \u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001ISO 8601 \u6a19\u6e96\u306b\u6e96\u62e0\u3059\u308b\u65e5\u6642\u8868\u73fe\u3092\u542b\u3080\u6587\u5b57\u5217\u3092\u30d1\u30fc\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>0.2.0 \u3088\u308a\u524d\u306f\u3001<code>2021-01-02T03:02:01Z<\/code> \u306e\u3088\u3046\u306b <code>Z<\/code> \u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u6307\u5b9a\u5b50\u3092\u6700\u5f8c\u306b\u542b\u3080\u5f62\u5f0f\u306e\u307f\u3092\u53d7\u3051\u4ed8\u3051\u3066\u3044\u307e\u3057\u305f\u3002\u3053\u306e\u5834\u5408\u3001\u6642\u9593\u306f UTC+0 \u306e\u30aa\u30d5\u30bb\u30c3\u30c8\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002 \u4eca\u5f8c\u306f\u30bc\u30ed\u4ee5\u5916\u306e UTC \u30aa\u30d5\u30bb\u30c3\u30c8\u3082\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"kotlin-code\" style=\"visibility: hidden; padding: 36px 0;\" data-highlight-only=\"true\">val instant1 = Instant.parse(\"2021-01-02T03:02:01Z\")\nval instant2 = Instant.parse(\"2021-01-02T06:02:01+03:00\")\nprintln(instant1) \/\/ 2021-01-02T03:02:01Z\nprintln(instant2) \/\/ 2021-01-02T03:02:01Z\n<\/pre>\n<h2 id=\"give-it-a-try\">\u305c\u3072\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\uff01<\/h2>\n<p><code>kotlinx-datetime<\/code> 0.2.0 \u306f Maven Central \u304b\u3089\u5165\u624b\u3067\u304d\u307e\u3059\u3002 \u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3044\u3001\u3054\u81ea\u8eab\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>Maven Central \u304c\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<div style=\"margin-left: 40px;\">\n<pre class=\"kotlin-code\" style=\"visibility: hidden; padding: 36px 0;\" data-highlight-only=\"true\">repositories {\n    mavenCentral()\n}\n<\/pre>\n<\/div>\n<ul>\n<li><code>kotlinx-datetime<\/code> \u3092\u4f9d\u5b58\u95a2\u4fc2\u3068\u3057\u3066\u8ffd\u52a0\u3057\u307e\u3059 (\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f5c\u696d\u3057\u3066\u3044\u308b\u5834\u5408\u306f<a href=\"https:\/\/kotlinlang.org\/docs\/mobile\/add-dependencies.html\" target=\"_blank\" rel=\"noopener\">\u30bd\u30fc\u30b9\u30bb\u30c3\u30c8\u306e\u6307\u5b9a<\/a>\u3082\u304a\u5fd8\u308c\u306a\u304f)\u3002<\/li>\n<\/ul>\n<div style=\"margin-left: 40px;\">\n<pre class=\"kotlin-code\" style=\"visibility: hidden; padding: 36px 0;\" data-highlight-only=\"true\">dependencies {\n    implementation(\"org.jetbrains.kotlinx:kotlinx-datetime:0.2.0\")\n}\n<\/pre>\n<\/div>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f7f\u7528\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u8a73\u7d30\u306a\u8aac\u660e\u306f\u3001<a href=\"https:\/\/github.com\/Kotlin\/kotlinx-datetime#using-in-your-projects\" target=\"_blank\" rel=\"noopener\">README<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u3054\u610f\u898b\u3092\u304a\u5bc4\u305b\u304f\u3060\u3055\u3044<\/h2>\n<p>\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f<a href=\"https:\/\/kotlinlang.org\/docs\/components-stability.html\" target=\"_blank\" rel=\"noopener\">\u5b9f\u9a13\u7684<\/a>\u306a\u3082\u306e\u3067\u3042\u308b\u305f\u3081\u3001\u4eca\u5f8c\u3082 API \u304c\u5909\u66f4\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u73fe\u5728\u3001\u79c1\u305f\u3061\u306f\u5b89\u5b9a\u7248\u306e\u30ea\u30ea\u30fc\u30b9\u3092\u76ee\u6307\u3057\u3066\u304a\u308a\u3001\u7686\u69d8\u304b\u3089\u306e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u53c2\u8003\u306b\u3057\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><code>kotlinx-datetime<\/code> 0.2.0 \u3092\u304a\u8a66\u3057\u306e\u3046\u3048\u3001\u3054\u611f\u60f3\u3092\u304a\u5bc4\u305b\u304f\u3060\u3055\u3044\uff01 \u307e\u305f\u3001\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e<a href=\"https:\/\/github.com\/Kotlin\/kotlinx-datetime\/issues\" target=\"_blank\" rel=\"noopener\">\u8ab2\u984c\u30c8\u30e9\u30c3\u30ab\u30fc<\/a>\u306b\u3054\u5831\u544a\u304f\u3060\u3055\u3044\u3002\u3054\u8cea\u554f\u306f JetBrains \u306e <a href=\"https:\/\/kotlinlang.slack.com\/\" target=\"_blank\" rel=\"noopener\">Slack<\/a> \u3067\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044 (<a href=\"https:\/\/surveys.jetbrains.com\/s3\/kotlin-slack-sign-up\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u3067\u62db\u5f85\u3092\u53d7\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059)\u3002<\/p>\n\n\n<p><\/p>\n","protected":false},"author":811,"featured_media":141668,"comment_status":"closed","ping_status":"closed","template":"","categories":[909],"tags":[91],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/kotlin\/149928"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/kotlin"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/types\/kotlin"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/users\/811"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/comments?post=149928"}],"version-history":[{"count":9,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/kotlin\/149928\/revisions"}],"predecessor-version":[{"id":149984,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/kotlin\/149928\/revisions\/149984"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/media\/141668"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/media?parent=149928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/categories?post=149928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/tags?post=149928"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/cross-post-tag?post=149928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}