<?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>python</anon>
  </categories>
  <description>cgiからpythonを動かして色々とやるツールを少し前からちょこちょこ作ってる その中で不特定多数のユーザーが走らせたコマンドを記録したくなった いつ走らせたか、どんなオプションを使ったか これをログに残しておくそこで走らせた日付を知りたい Pythonのdatetimeで日付や時間と文字列を変換（strftime, strptime） | note.nkmk.me import datetime d_today = datetime.date.today() print(d_today) # 2019-02-04 とか 時間入りで日付を知りたいときはnowを使う dt_now = date…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2024%2F11%2F08%2F000000&quot; title=&quot;【python3, datetime】任意の形式でdatetimeを出力したい + UTCから日本時間(JST)に変換したい + 1日前の日付にしたい - 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>2024-11-08 00:00:00</published>
  <title>【python3, datetime】任意の形式でdatetimeを出力したい + UTCから日本時間(JST)に変換したい + 1日前の日付にしたい</title>
  <type>rich</type>
  <url>https://coffee-guhaw.hateblo.jp/entry/2024/11/08/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
