<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hycon</author_name>
  <author_url>https://blog.hatena.ne.jp/hycon/</author_url>
  <blog_title>hyconの日記</blog_title>
  <blog_url>https://hycon.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>POSIXのシェルユーティリティにはエポック秒を直接出力するコマンドがないので生成する方法を考えます perlを使う POSIX非標準。perlぐらいどの*nixにもインストールされているしこれが普通。 $ perl -e 'print time, &quot;\n&quot;' date(1)でフォーマット指定を使う POSIX非標準。date(1)のフォーマット指定にエポック秒を出力する s があります。これはGNU拡張。 $ date +%s 日付時刻からエポック秒を計算する 全てPOSIXのコマンドだけでやろうとすると多分これしかないです。エポック秒は次の計算式で算出出来ます。 tm_sec + tm_m…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhycon.hatenadiary.org%2Fentry%2F20100823%2F1282585696&quot; title=&quot;シェルスクリプトでエポック秒を得る - hyconの日記&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>2010-08-23 02:48:16</published>
  <title>シェルスクリプトでエポック秒を得る</title>
  <type>rich</type>
  <url>https://hycon.hatenadiary.org/entry/20100823/1282585696</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
