<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>perl</anon>
  </categories>
  <description>dmesg の時間表記を日時に変換するやつ #!/usr/bin/perl my $btime = `grep btime /proc/stat|cut -b7-`; open(my $fh, &quot;dmesg |&quot;) or die(&quot;open&quot;); while(&lt;$fh&gt;){ if( $_ =~ m/^\[\s*(\d+)\.\d*\] (.*)$/ ){ my $time = $1; my $text = $2; my ($S,$M,$H,$d,$m,$Y,$x) = localtime($time+$btime); my $date = sprintf( &quot;%04d-%02d-%02d %0…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20210202%2Fuptime&quot; title=&quot; dmesgのuptime部分を日付にする 2 - 揮発性のメモ２&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/42132/1577169589465165</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-02-03 08:30:00</published>
  <title> dmesgのuptime部分を日付にする 2</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20210202/uptime</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
