<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>outofmem</author_name>
  <author_url>https://blog.hatena.ne.jp/outofmem/</author_url>
  <blog_title>Tumbling Dice</blog_title>
  <blog_url>https://outofmem.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>snippet</anon>
  </categories>
  <description>やはりエンジニアたるもの、出来る限り定時で帰りたいので、PCを起動する際にHTTP経由で毎日時間を合わせようと思います。 使用するWeb API NICT（情報通信研究機構）が提供しているAPIを使用します。 タイムスタンプはどれでもどうにでもなるんですが、POSIX（UNIX時間）にしますか。 システム日付の変更方法 Win32 APIのSetLocalTime関数を使用することで可能です。 MSDNを漁ってもいいんですが、ここに書いてある情報で十分です。 当然の如くUACが絡んでくるので、実行時には管理者権限を考慮する必要があります。 UNIX時間をDatetimeに変換する これを参考に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foutofmem.hatenablog.com%2Fentry%2F2014%2F01%2F07%2F053943&quot; title=&quot;【C#】端末のシステム日付を変更する - Tumbling Dice&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>2014-01-07 05:39:43</published>
  <title>【C#】端末のシステム日付を変更する</title>
  <type>rich</type>
  <url>https://outofmem.hatenablog.com/entry/2014/01/07/053943</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
