<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yosshi71jp</author_name>
  <author_url>https://blog.hatena.ne.jp/yosshi71jp/</author_url>
  <blog_title>シコウサクゴ（）</blog_title>
  <blog_url>https://yosshi71jp.hatenadiary.org/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>時間関係のモジュールは標準でいろいろあるけれど、経過秒を調べる方法がわからなかった。現在時刻の経過秒を調べる関数はあったけど・・・ import time print time.time() # 現在時刻の経過秒をリターン 僕がほしいのは、「今」じゃなくて「ある日」の経過秒。そこで、datetimeモジュールのdatetimeクラスを継承したmydatetimeクラスを作りました。 from datetime import datetime; class mydatetime(datetime): def allseconds(self): s = self.toordinal()*60*60…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyosshi71jp.hatenadiary.org%2Fentry%2F20091210%2F1260463071&quot; title=&quot;pythonで、経過秒を調べる方法 - シコウサクゴ（）&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>2009-12-10 01:37:51</published>
  <title>pythonで、経過秒を調べる方法</title>
  <type>rich</type>
  <url>https://yosshi71jp.hatenadiary.org/entry/20091210/1260463071</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
