to.tetramorph.time
クラス DateFormat

java.lang.Object
  上位を拡張 to.tetramorph.time.DateFormat

public class DateFormat
extends Object

カレンダーの値をフォーマットして返すメソッド群。


メソッドの概要
static String getDateHourMinute(Calendar cal)
          Calendarの日付文字列を"yyyy-mm-dd,曜日,hh:mm"という書式で返す。
static String getDateString(double jday)
          デフォルトタイムゾーンにおけるユリウス日に対応する日付表現を返す。
static String getDateString(double jday, TimeZone tz)
          ユリウス日の日付表現を返す。
static String getDateString(GregorianCalendar gcal)
          グレゴリアンカレンダーのERA情報つきの文字列表現を返す。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

getDateString

public static String getDateString(GregorianCalendar gcal)
グレゴリアンカレンダーのERA情報つきの文字列表現を返す。 例 "AD 2008-02-19(火) 13:55:13"
曜日情報はカレンダーのロケールに基づく。


getDateString

public static String getDateString(double jday,
                                   TimeZone tz)
ユリウス日の日付表現を返す。


getDateString

public static String getDateString(double jday)
デフォルトタイムゾーンにおけるユリウス日に対応する日付表現を返す。


getDateHourMinute

public static String getDateHourMinute(Calendar cal)
Calendarの日付文字列を"yyyy-mm-dd,曜日,hh:mm"という書式で返す。
例 "2008-02-19,火,13:39"
このメソッドは紀元前はサポートしない。時刻は24時間制。
ミリセコンドの桁が500ms以上は切り上げ、次に秒の桁が30秒以上なら切り上げ した値を返す。