<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>huskworks53</author_name>
  <author_url>https://blog.hatena.ne.jp/huskworks53/</author_url>
  <blog_title>HUSKING - kotteri</blog_title>
  <blog_url>https://husk.hatenablog.com/</blog_url>
  <categories>
    <anon>Windows</anon>
  </categories>
  <description>バッチファイル（.bat）にて現在日時を”yyyymmdd_hhmmss”形式で出力してみる set dt=%date% set tm=%time: =0% echo %dt:~0,4%%dt:~5,2%%dt:~8,2%_%tm:~0,2%%tm:~3,2%%tm:~6,2% 実行結果 20191018_113803 注意点としては、午前0時～午前9時の場合、 time変数が返す文字列の先頭には、「0」ではなく、空白文字が含まれている その為、” =0%”で空白を0に置換している ログファイルの出力などでたまに使うので忘れないようにメモ :)</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhusk.hatenablog.com%2Fentry%2F2019%2F10%2F18%2F113659&quot; title=&quot;バッチファイルにて現在日時を出力する - HUSKING - kotteri&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-10-18 11:36:59</published>
  <title>バッチファイルにて現在日時を出力する</title>
  <type>rich</type>
  <url>https://husk.hatenablog.com/entry/2019/10/18/113659</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
