<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>coffee_kabu</author_name>
  <author_url>https://blog.hatena.ne.jp/coffee_kabu/</author_url>
  <blog_title>Bus errorとSegmentation faultに困ったら見るブログ</blog_title>
  <blog_url>https://coffee-guhaw.hateblo.jp/</blog_url>
  <categories>
    <anon>シェルコマンド/シェルスクリプト</anon>
  </categories>
  <description>ただのメモDEATHUNIX時刻は協定世界時(UTC)での1970円1月1日の0:00:00(深夜0時)からの経過秒数 ただし、うるう秒を足し引きして考慮する 計算機内ではunsigned intで扱われているので、32bitマシンでは上限が2,147483647なので、2038年には何かトラブルが起こるかも オーバーフローしてマイナスになる？最近のマシンはすべて64bitなので影響はない現在のUNIX時刻を取得date +%s こっちはうまくいかなかった1日前を取得date --date &quot;1day ago&quot; +%sdateコマンドにUNIX時刻を渡すdate --date @1382282…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F08%2F19%2F000000&quot; title=&quot;【シェルコマンド】dateでUNIX時刻を取得する - Bus errorとSegmentation faultに困ったら見るブログ&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>2025-08-19 00:00:00</published>
  <title>【シェルコマンド】dateでUNIX時刻を取得する</title>
  <type>rich</type>
  <url>https://coffee-guhaw.hateblo.jp/entry/2025/08/19/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
