{"id":6451,"date":"2011-11-06T14:34:35","date_gmt":"2011-11-06T05:34:35","guid":{"rendered":"http:\/\/fukata.org\/?p=6451"},"modified":"2017-08-11T22:58:48","modified_gmt":"2017-08-11T22:58:48","slug":"clojure-clj-time","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/6451\/","title":{"rendered":"Clojure\u3067org.joda.time\u3092\u6271\u3046clj-time"},"content":{"rendered":"

seancorfield\/clj-time – GitHub<\/a><\/p>\n

clojure\u304b\u3089\u65e5\u4ed8\u95a2\u4fc2\u3092\u6271\u3046\u5834\u5408\u3001java.util.Date\u3092\u76f4\u63a5\u4f7f\u3046\u4e8b\u304c\u591a\u3044\u304b\u3063\u305f\u3093\u3067\u3059\u304c\u3001\u4f55\u6642\u9593\u524d\u3068\u304b\u4eca\u6708\u306e\u672b\u65e5\u3092\u6c42\u3081\u308b\u6642\u306b\u4e0d\u4fbf\u3060\u3063\u305f\u306e\u3067\u4f55\u304b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u7121\u3044\u304b\u63a2\u3057\u3066\u307f\u308b\u3068org.joda.time\u3092clojure\u304b\u3089\u6271\u3046\u300cclj-time\u300d\u3068\u3044\u3046\u306e\u304c\u4f7f\u3044\u3084\u3059\u304b\u3063\u305f\u306e\u3067\u3001\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n

\u3069\u3093\u3060\u3051\u697d\u306a\u306e\u304b\u306f\u4e0a\u8a18\u306e\u30b5\u30a4\u30c8\u3092\u898b\u308c\u3070\u3082\u3046\u307b\u3068\u3093\u3069\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u4e00\u90e8\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n

<\/p>\n

\r\n;\u65e5\u4ed8\u6307\u5b9a\u3067Date\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\r\n(date-time 1986 10 14)\r\n\r\n;1\u30f6\u6708\u5f8c\u306e\u65e5\u4ed8\u3092\u53d6\u5f97\r\n(plus (now) (months 1))\r\n\r\n;1\u30f6\u6708\u524d\u306e\u65e5\u4ed8\u3092\u53d6\u5f97\r\n(minus (now) (months 1))\r\n\r\n;org.joda.time.DateTime\u304b\u3089java.util.Date\u3078\u5909\u63db\r\n(.toDate (now))\r\n<\/pre>\n

\u3053\u306e\u4ed6\u306b\u3082\u4fbf\u5229\u306a\u95a2\u6570\u304c\u6ca2\u5c71\u3042\u308b\u306e\u3067\u3001\u65e5\u4ed8\u8a08\u7b97\u3092\u591a\u7528\u3059\u308b\u5834\u5408\u306b\u306f\u662f\u975e\u4f7f\u3063\u3066\u307f\u308b\u3068\u4fbf\u5229\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

\u307e\u305f\u3001clj-time.core\u3067\u3059\u304c\u3001use\u3059\u308b\u3068clj-time.core\/extend\u3068clojure.core\/extend\u304c\u88ab\u3063\u3066\u3057\u307e\u3044\u3001\u8b66\u544a\u304c\u51fa\u308b\u306e\u3067\u3001as\u3067\u5225\u540d\u3092\u4ed8\u3051\u308b\u304bonly\u3067\u5fc5\u8981\u306a\u3082\u306e\u3060\u3051\u8aad\u307f\u8fbc\u3093\u3060\u65b9\u304c\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n

\u8ffd\u8a18\uff1a2011.11.06<\/strong>
\ngithub\u306eURL\u304c\u9593\u9055\u3063\u3066\u3044\u305f\u3068\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u9802\u3044\u305f\u306e\u3067\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

seancorfield\/clj-time – GitHub clojure\u304b\u3089\u65e5\u4ed8\u95a2\u4fc2\u3092\u6271\u3046\u5834\u5408\u3001java.util.Date\u3092\u76f4\u63a5\u4f7f\u3046\u4e8b\u304c\u591a\u3044\u304b\u3063\u305f\u3093\u3067\u3059\u304c\u3001\u4f55\u6642\u9593\u524d\u3068\u304b\u4eca\u6708\u306e\u672b\u65e5\u3092\u6c42 … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1980],"tags":[933,932],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/6451"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=6451"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/6451\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=6451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=6451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=6451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}