<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>note</title><link>/</link><description>Recent content on note</description><generator>Hugo -- gohugo.io</generator><language>ja-jp</language><copyright>529</copyright><lastBuildDate>Tue, 15 Jun 2021 00:00:00 +0000</lastBuildDate><atom:link href="/index.xml" rel="self" type="application/rss+xml"/><item><title>Clojure 基礎</title><link>/posts/study-clojure/</link><pubDate>Tue, 15 Jun 2021 00:00:00 +0000</pubDate><guid>/posts/study-clojure/</guid><description>if (defn if-sample &amp;#34;&amp;#34; [] (if true (str &amp;#34;this is true&amp;#34;) (str &amp;#34;tihs is false&amp;#34;))) (if-sample) getting-clojure リポジトリでさまざまなコード片を記述していきながら基礎を学んでいく そこで出てきた実装をうまくなにかに生かす yyyyMMddHHmm の形式の数字列を java.time.LocalDatetime 型にする 数字列からDatetime形式にしてよしなに取り扱いたい要件があった
clj-time には clj-time.format の parse, unparse formatter を定義してできたが、java-time に切り替えたら parse がができなさそう
(ns tmp (:require [clj-time.core :as t] [clj-time.local :as l] [clj-time.format :as f] [clj-time.predicates :as pr] [clojure.string :as str] [java-time :as time]) (:import [java.time LocalDateTime] [java.time.format DateTimeFormatter])) (def custom-formatter (f/formatter &amp;#34;yyyyMMddHHmm&amp;#34;)) (f/unparse custom-formatter (t/now)) (f/parse custom-formatter &amp;#34;202105251003&amp;#34;) 自作で作ってみたけどこれはどうなのか&amp;hellip;.</description></item><item><title>Org-mode メモ</title><link>/posts/org-mode-memo/</link><pubDate>Fri, 11 Jun 2021 00:00:00 +0000</pubDate><guid>/posts/org-mode-memo/</guid><description>M は ALT C は CTRL 参考 Emacs org-modeを使ってみる: (9) キーバインド1/3 - 屯遁のパズルとプログラミングの日記</description></item><item><title>コンテンツ</title><link>/posts/contents-test/</link><pubDate>Sat, 02 Jan 2021 00:00:00 +0000</pubDate><guid>/posts/contents-test/</guid><description>H1 abc H2 abc H3 abc H1 abc aaa cd</description></item></channel></rss>