<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mzryuka</author_name>
  <author_url>https://blog.hatena.ne.jp/mzryuka/</author_url>
  <blog_title>みずりゅの自由帳</blog_title>
  <blog_url>https://mzryuka.hatenablog.jp/</blog_url>
  <categories>
    <anon>CentOS</anon>
    <anon>Linux</anon>
    <anon>Ubuntu</anon>
  </categories>
  <description>備忘メモ。Linuxのdateコマンドで和暦を表示する。 CentOS7のdateコマンド（GNU date）で確認。確認したバージョンは8.22。 なお、ubuntu18.10でも表示を確認。Macは西暦のみで和暦は出てこなかった。 要約: dateコマンドに「+%Ec」「+%EC」「+%Ex」「+%EX」「+%Ey」「+%EY」を指定すると、和暦に関する情報が返ってくる。 詳しくは、下記「余談1:」を参照。 和暦を表示するには、localeは「LC_TIME=&quot;ja_JP.UTF-8&quot;」が設定されている必要がある。あと、当然日本語フォントはいる。 実行例： $ date +%Ec 平成31…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzryuka.hatenablog.jp%2Fentry%2F2019%2F04%2F03%2F220000&quot; title=&quot;dateコマンドで和暦表示 - みずりゅの自由帳&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-04-03 22:00:00</published>
  <title>dateコマンドで和暦表示</title>
  <type>rich</type>
  <url>https://mzryuka.hatenablog.jp/entry/2019/04/03/220000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
