<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chiheisen</author_name>
  <author_url>https://blog.hatena.ne.jp/chiheisen/</author_url>
  <blog_title>地平線に行く</blog_title>
  <blog_url>https://yujisoftware.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>小技</anon>
  </categories>
  <description>Javaで1時間をミリ秒で指定する場合、 long millis = 1*60*60*1000; と書いていたけど、なんか分かりづらい・・・。 1時間を指定しているはずが、後ろの部分が目立ってよく分からないです。 でも、TimeUnitを使うと、 long millis = TimeUnit.HOURS.toMillis(1); と書けるので、1時間をミリ秒に変換しているとすぐ分かっていい感じ。Oracle Technology Network for Java Developers | Oracle Technology Network | Oracle 本来は、通信系のクラスに引数として渡…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyujisoftware.hatenablog.com%2Fentry%2F20090205%2F1234578613&quot; title=&quot;TimeUnitが便利 - 地平線に行く&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-02-05 11:30:13</published>
  <title>TimeUnitが便利</title>
  <type>rich</type>
  <url>https://yujisoftware.hatenablog.com/entry/20090205/1234578613</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
