<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shikaku</author_name>
  <author_url>https://blog.hatena.ne.jp/shikaku/</author_url>
  <blog_title>shikaku's blog</blog_title>
  <blog_url>https://blog.systemjp.net/</blog_url>
  <categories>
  </categories>
  <description>binanceのAPIコールでよく時計ずれのエラーが起きるので、スクリプトの先頭で実行する なぜかグリニッジ標準で指定しないと時計がえらいずれた。 import win32api import ntplib from datetime import datetime import pytz ##時計同期 # NTPサーバーのアドレス ntp_server = 'time.windows.com' # タイムゾーンを指定 なぜかasia指定すると時計がもっとずれる tz = pytz.timezone('Etc/GMT') # NTPサーバーから現在時刻を取得 client = ntplib.N…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F2023%2F03%2F30%2F162338&quot; title=&quot;pythonでwindows時計同期 - shikaku&amp;#39;s blog&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-03-30 16:23:38</published>
  <title>pythonでwindows時計同期</title>
  <type>rich</type>
  <url>https://blog.systemjp.net/entry/2023/03/30/162338</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
