<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>b3g</author_name>
  <author_url>https://blog.hatena.ne.jp/b3g/</author_url>
  <blog_title>身の回り4畳半近辺の日記</blog_title>
  <blog_url>https://b3g.hatenablog.com/</blog_url>
  <categories>
    <anon>PC</anon>
  </categories>
  <description>PowerShell 5.1の環境でdatetime型の日時をJSONに保管して読みだしたときにはまった話題です。 次のように変数$aに日時を代入します。 $a = [datetime]::ParseExact(&quot;2023/11/5 23:00&quot;, &quot;yyyy/M/d H:m&quot;, $null) これをConvertTo-JsonでJSONにすると PS C:\&gt; $a | ConvertTo-Json{ &quot;value&quot;: &quot;\/Date(1699192800000)\/&quot;, &quot;DateTime&quot;: &quot;2023年11月5日 23:00:00&quot;} と、valueとDateTime、2つのキーを持つ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fb3g.hatenablog.com%2Fentry%2F2023%2F11%2F05%2F230000&quot; title=&quot;PowerShellでdatetime型をJSONにしたときの問題 - 身の回り4畳半近辺の日記&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>2023-11-05 23:00:00</published>
  <title>PowerShellでdatetime型をJSONにしたときの問題</title>
  <type>rich</type>
  <url>https://b3g.hatenablog.com/entry/2023/11/05/230000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
