Joda Time API

org.joda.time
Class DateTimeConstants

java.lang.Object
  |
  +--org.joda.time.DateTimeConstants

public final class DateTimeConstants
extends java.lang.Object

DateTimeConstants is a non-instantiable class of constants used in the date time system. These are the ISO8601 constants, but should be used by all chronologies.

Since:
1.0
Author:
Stephen Colebourne, Brian S O'Neill

Field Summary
static int AD
          Constant (1) representing AD, years after zero (from Calendar)
static int AM
          Constant (0) representing AM, the morning (from Calendar)
static int APRIL
          Constant (4) representing April, the fourth month
static int AUGUST
          Constant (8) representing August, the eighth month
static int BC
          Constant (0) representing BC, years before zero (from Calendar)
static int BCE
          Alternative constant (0) representing BCE, Before Common Era (secular)
static int CE
          Alternative constant (1) representing CE, Common Era (secular)
static int DAYS_PER_WEEK
          Days in one week (7)
static int DECEMBER
          Constant (12) representing December, the twelfth month
static int FEBRUARY
          Constant (2) representing February, the second month
static int FRIDAY
          Constant (5) representing Monday, the fifth day of the week (ISO)
static int HOURS_PER_DAY
          Hours in a typical day (24).
static int HOURS_PER_WEEK
          Hours in a typical week.
static int JANUARY
          Constant (1) representing January, the first month
static int JULY
          Constant (7) representing July, the seventh month
static int JUNE
          Constant (6) representing June, the sixth month
static int MARCH
          Constant (3) representing March, the third month
static java.util.List MAX_DAYS_PER_MONTH
          Constant list of the number of days in the month.
static int MAY
          Constant (5) representing May, the fifth month
static int MILLIS_PER_DAY
          Milliseconds in a typical day.
static int MILLIS_PER_HOUR
           
static int MILLIS_PER_MINUTE
           
static int MILLIS_PER_SECOND
          Milliseconds in one second (1000)
static int MILLIS_PER_WEEK
          Milliseconds in a typical week.
static java.util.List MIN_DAYS_PER_MONTH
          Constant list of the number of days in the month.
static int MINUTES_PER_DAY
          Minutes in a typical day.
static int MINUTES_PER_HOUR
          Minutes in one hour (60)
static int MINUTES_PER_WEEK
          Minutes in a typical week.
static int MONDAY
          Constant (1) representing Monday, the first day of the week (ISO)
static int NOVEMBER
          Constant (11) representing November, the eleventh month
static int OCTOBER
          Constant (10) representing October, the tenth month
static int PM
          Constant (1) representing PM, the afternoon (from Calendar)
static int SATURDAY
          Constant (6) representing Monday, the sixth day of the week (ISO)
static int SECONDS_PER_DAY
          Seconds in a typical day.
static int SECONDS_PER_HOUR
           
static int SECONDS_PER_MINUTE
          Seconds in one minute (60)
static int SECONDS_PER_WEEK
          Seconds in a typical week.
static int SEPTEMBER
          Constant (9) representing September, the nineth month
static int SUNDAY
          Constant (7) representing Monday, the seventh day of the week (ISO)
static int THURSDAY
          Constant (4) representing Monday, the fourth day of the week (ISO)
static int TUESDAY
          Constant (2) representing Monday, the second day of the week (ISO)
static int WEDNESDAY
          Constant (3) representing Monday, the third day of the week (ISO)
 
Constructor Summary
protected DateTimeConstants()
          Restrictive constructor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JANUARY

public static final int JANUARY
Constant (1) representing January, the first month

See Also:
Constant Field Values

FEBRUARY

public static final int FEBRUARY
Constant (2) representing February, the second month

See Also:
Constant Field Values

MARCH

public static final int MARCH
Constant (3) representing March, the third month

See Also:
Constant Field Values

APRIL

public static final int APRIL
Constant (4) representing April, the fourth month

See Also:
Constant Field Values

MAY

public static final int MAY
Constant (5) representing May, the fifth month

See Also:
Constant Field Values

JUNE

public static final int JUNE
Constant (6) representing June, the sixth month

See Also:
Constant Field Values

JULY

public static final int JULY
Constant (7) representing July, the seventh month

See Also:
Constant Field Values

AUGUST

public static final int AUGUST
Constant (8) representing August, the eighth month

See Also:
Constant Field Values

SEPTEMBER

public static final int SEPTEMBER
Constant (9) representing September, the nineth month

See Also:
Constant Field Values

OCTOBER

public static final int OCTOBER
Constant (10) representing October, the tenth month

See Also:
Constant Field Values

NOVEMBER

public static final int NOVEMBER
Constant (11) representing November, the eleventh month

See Also:
Constant Field Values

DECEMBER

public static final int DECEMBER
Constant (12) representing December, the twelfth month

See Also:
Constant Field Values

MAX_DAYS_PER_MONTH

public static final java.util.List MAX_DAYS_PER_MONTH
Constant list of the number of days in the month. The index into the list is the month constant as defined in ReadableDate, thus MAX_DAYS_IN_MONTH.get(0) has no meaning and returns null. This is a list rather than an array as it must be unmodifiable.


MIN_DAYS_PER_MONTH

public static final java.util.List MIN_DAYS_PER_MONTH
Constant list of the number of days in the month. The index into the list is the month constant as defined in ReadableDate, thus MIN_DAYS_IN_MONTH.get(0) has no meaning and returns null. This is a list rather than an array as it must be unmodifiable.


MONDAY

public static final int MONDAY
Constant (1) representing Monday, the first day of the week (ISO)

See Also:
Constant Field Values

TUESDAY

public static final int TUESDAY
Constant (2) representing Monday, the second day of the week (ISO)

See Also:
Constant Field Values

WEDNESDAY

public static final int WEDNESDAY
Constant (3) representing Monday, the third day of the week (ISO)

See Also:
Constant Field Values

THURSDAY

public static final int THURSDAY
Constant (4) representing Monday, the fourth day of the week (ISO)

See Also:
Constant Field Values

FRIDAY

public static final int FRIDAY
Constant (5) representing Monday, the fifth day of the week (ISO)

See Also:
Constant Field Values

SATURDAY

public static final int SATURDAY
Constant (6) representing Monday, the sixth day of the week (ISO)

See Also:
Constant Field Values

SUNDAY

public static final int SUNDAY
Constant (7) representing Monday, the seventh day of the week (ISO)

See Also:
Constant Field Values

AM

public static final int AM
Constant (0) representing AM, the morning (from Calendar)

See Also:
Constant Field Values

PM

public static final int PM
Constant (1) representing PM, the afternoon (from Calendar)

See Also:
Constant Field Values

BC

public static final int BC
Constant (0) representing BC, years before zero (from Calendar)

See Also:
Constant Field Values

BCE

public static final int BCE
Alternative constant (0) representing BCE, Before Common Era (secular)

See Also:
Constant Field Values

AD

public static final int AD
Constant (1) representing AD, years after zero (from Calendar)

See Also:
Constant Field Values

CE

public static final int CE
Alternative constant (1) representing CE, Common Era (secular)

See Also:
Constant Field Values

MILLIS_PER_SECOND

public static final int MILLIS_PER_SECOND
Milliseconds in one second (1000)

See Also:
Constant Field Values

SECONDS_PER_MINUTE

public static final int SECONDS_PER_MINUTE
Seconds in one minute (60)

See Also:
Constant Field Values

MILLIS_PER_MINUTE

public static final int MILLIS_PER_MINUTE
See Also:
Constant Field Values

MINUTES_PER_HOUR

public static final int MINUTES_PER_HOUR
Minutes in one hour (60)

See Also:
Constant Field Values

SECONDS_PER_HOUR

public static final int SECONDS_PER_HOUR
See Also:
Constant Field Values

MILLIS_PER_HOUR

public static final int MILLIS_PER_HOUR
See Also:
Constant Field Values

HOURS_PER_DAY

public static final int HOURS_PER_DAY
Hours in a typical day (24). Due to time zone offset changes, the number of hours per day can vary.

See Also:
Constant Field Values

MINUTES_PER_DAY

public static final int MINUTES_PER_DAY
Minutes in a typical day. Due to time zone offset changes, the number of minutes per day can vary.

See Also:
Constant Field Values

SECONDS_PER_DAY

public static final int SECONDS_PER_DAY
Seconds in a typical day. Due to time zone offset changes, the number of seconds per day can vary.

See Also:
Constant Field Values

MILLIS_PER_DAY

public static final int MILLIS_PER_DAY
Milliseconds in a typical day. Due to time zone offset changes, the number of milliseconds per day can vary.

See Also:
Constant Field Values

DAYS_PER_WEEK

public static final int DAYS_PER_WEEK
Days in one week (7)

See Also:
Constant Field Values

HOURS_PER_WEEK

public static final int HOURS_PER_WEEK
Hours in a typical week. Due to time zone offset changes, the number of hours per week can vary.

See Also:
Constant Field Values

MINUTES_PER_WEEK

public static final int MINUTES_PER_WEEK
Minutes in a typical week. Due to time zone offset changes, the number of minutes per week can vary.

See Also:
Constant Field Values

SECONDS_PER_WEEK

public static final int SECONDS_PER_WEEK
Seconds in a typical week. Due to time zone offset changes, the number of seconds per week can vary.

See Also:
Constant Field Values

MILLIS_PER_WEEK

public static final int MILLIS_PER_WEEK
Milliseconds in a typical week. Due to time zone offset changes, the number of milliseconds per week can vary.

See Also:
Constant Field Values
Constructor Detail

DateTimeConstants

protected DateTimeConstants()
Restrictive constructor


Joda Time API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.