<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>owiewowe</author_name>
  <author_url>https://blog.hatena.ne.jp/owiewowe/</author_url>
  <blog_title>19日に更新してた</blog_title>
  <blog_url>https://owiewowe.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>golang の time.ParseInLocation で &quot;2006年1月2日午後15時4分&quot; をフォーマットに使って変換しようとしても、午前午後が異なるとエラーでうまく変換されませんでした。仕方がないので、入力の午前、午後を AM, PM に置換して、フォーマット部分を &quot;2006年1月2日PM15時4分&quot; にしたら24時間法で出てきました。 func NihongoTimeParse(s string) { fmt.Print(s, &quot; &quot;) jst, _ := time.LoadLocation(&quot;Asia/Tokyo&quot;) s = strings.ReplaceAll(s, &quot;午前…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fowiewowe.hatenablog.com%2Fentry%2F2024%2F07%2F19%2F000000_1&quot; title=&quot;【golang】time.ParseInLocation で&amp;quot;午前&amp;quot;、&amp;quot;午後&amp;quot;が入っている時刻の扱い - 19日に更新してた&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-07-19 00:00:00</published>
  <title>【golang】time.ParseInLocation で&quot;午前&quot;、&quot;午後&quot;が入っている時刻の扱い</title>
  <type>rich</type>
  <url>https://owiewowe.hatenablog.com/entry/2024/07/19/000000_1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
