<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tamata78</author_name>
  <author_url>https://blog.hatena.ne.jp/tamata78/</author_url>
  <blog_title>気軽に楽しくプログラムと遊ぶ</blog_title>
  <blog_url>https://tamata78.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>システム日付のDate型を文字列に変換 SimpleDateFormat ft = new SimpleDateFormat(&quot;yyyy-MM-dd HH:mm:ss&quot;); String date_String = ft.format(new Date()); 日付の比較 compareToを使わないDate型の比較 Date型のcompareTo()の比較もあるが、戻り値が-1,0,1と直感的でないため、log型に変換 してから、比較を行う。 if (date1.getTime() &gt; date2.getTime()) { return &quot;date1はdate2より未来日&quot; } Calend…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftamata78.hatenablog.com%2Fentry%2F2016%2F07%2F05%2F215735&quot; title=&quot;Java 実装で使える日付型の書き方(Date,Timestamp,Calendar) - 気軽に楽しくプログラムと遊ぶ&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>2016-07-05 21:57:35</published>
  <title>Java 実装で使える日付型の書き方(Date,Timestamp,Calendar)</title>
  <type>rich</type>
  <url>https://tamata78.hatenablog.com/entry/2016/07/05/215735</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
