Package org.joda.time
Class DateTimeConstants
java.lang.Object
org.joda.time.DateTimeConstants
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.
DateTimeConstants is thread-safe and immutable.
- Since:
- 1.0
- Author:
- Stephen Colebourne, Brian S O'Neill
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant (1) representing AD, years after zero (from Calendar).static final intConstant (0) representing AM, the morning (from Calendar)static final intConstant (4) representing April, the fourth month (ISO)static final intConstant (8) representing August, the eighth month (ISO)static final intConstant (0) representing BC, years before zero (from Calendar)static final intAlternative constant (0) representing BCE, Before Common Era (secular)static final intAlternative constant (1) representing CE, Common Era (secular).static final intDays in one week (7) (ISO)static final intConstant (12) representing December, the twelfth month (ISO)static final intConstant (2) representing February, the second month (ISO)static final intConstant (5) representing Friday, the fifth day of the week (ISO)static final intHours in a typical day (24) (ISO).static final intHours in a typical week.static final intConstant (1) representing January, the first month (ISO)static final intConstant (7) representing July, the seventh month (ISO)static final intConstant (6) representing June, the sixth month (ISO)static final intConstant (3) representing March, the third month (ISO)static final intConstant (5) representing May, the fifth month (ISO)static final intMilliseconds in a typical day (ISO).static final intMilliseconds in one hour (ISO)static final intMilliseconds in one minute (ISO)static final intMilliseconds in one second (1000) (ISO)static final intMilliseconds in a typical week (ISO).static final intMinutes in a typical day (ISO).static final intMinutes in one hour (ISO)static final intMinutes in a typical week (ISO).static final intConstant (1) representing Monday, the first day of the week (ISO)static final intConstant (11) representing November, the eleventh month (ISO)static final intConstant (10) representing October, the tenth month (ISO)static final intConstant (1) representing PM, the afternoon (from Calendar)static final intConstant (6) representing Saturday, the sixth day of the week (ISO)static final intSeconds in a typical day (ISO).static final intSeconds in one hour (ISO)static final intSeconds in one minute (60) (ISO)static final intSeconds in a typical week (ISO).static final intConstant (9) representing September, the nineth month (ISO)static final intConstant (7) representing Sunday, the seventh day of the week (ISO)static final intConstant (4) representing Thursday, the fourth day of the week (ISO)static final intConstant (2) representing Tuesday, the second day of the week (ISO)static final intConstant (3) representing Wednesday, the third day of the week (ISO) -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
JANUARY
public static final int JANUARYConstant (1) representing January, the first month (ISO)- See Also:
-
FEBRUARY
public static final int FEBRUARYConstant (2) representing February, the second month (ISO)- See Also:
-
MARCH
public static final int MARCHConstant (3) representing March, the third month (ISO)- See Also:
-
APRIL
public static final int APRILConstant (4) representing April, the fourth month (ISO)- See Also:
-
MAY
public static final int MAYConstant (5) representing May, the fifth month (ISO)- See Also:
-
JUNE
public static final int JUNEConstant (6) representing June, the sixth month (ISO)- See Also:
-
JULY
public static final int JULYConstant (7) representing July, the seventh month (ISO)- See Also:
-
AUGUST
public static final int AUGUSTConstant (8) representing August, the eighth month (ISO)- See Also:
-
SEPTEMBER
public static final int SEPTEMBERConstant (9) representing September, the nineth month (ISO)- See Also:
-
OCTOBER
public static final int OCTOBERConstant (10) representing October, the tenth month (ISO)- See Also:
-
NOVEMBER
public static final int NOVEMBERConstant (11) representing November, the eleventh month (ISO)- See Also:
-
DECEMBER
public static final int DECEMBERConstant (12) representing December, the twelfth month (ISO)- See Also:
-
MONDAY
public static final int MONDAYConstant (1) representing Monday, the first day of the week (ISO)- See Also:
-
TUESDAY
public static final int TUESDAYConstant (2) representing Tuesday, the second day of the week (ISO)- See Also:
-
WEDNESDAY
public static final int WEDNESDAYConstant (3) representing Wednesday, the third day of the week (ISO)- See Also:
-
THURSDAY
public static final int THURSDAYConstant (4) representing Thursday, the fourth day of the week (ISO)- See Also:
-
FRIDAY
public static final int FRIDAYConstant (5) representing Friday, the fifth day of the week (ISO)- See Also:
-
SATURDAY
public static final int SATURDAYConstant (6) representing Saturday, the sixth day of the week (ISO)- See Also:
-
SUNDAY
public static final int SUNDAYConstant (7) representing Sunday, the seventh day of the week (ISO)- See Also:
-
AM
public static final int AMConstant (0) representing AM, the morning (from Calendar)- See Also:
-
PM
public static final int PMConstant (1) representing PM, the afternoon (from Calendar)- See Also:
-
BC
public static final int BCConstant (0) representing BC, years before zero (from Calendar)- See Also:
-
BCE
public static final int BCEAlternative constant (0) representing BCE, Before Common Era (secular)- See Also:
-
AD
public static final int ADConstant (1) representing AD, years after zero (from Calendar).All new chronologies with different Era values should try to assign eras as follows. The era that was in force at 1970-01-01 (ISO) is assigned the value 1. Earlier eras are assigned sequentially smaller numbers. Later eras are assigned sequentially greater numbers.
- See Also:
-
CE
public static final int CEAlternative constant (1) representing CE, Common Era (secular).All new chronologies with different Era values should try to assign eras as follows. The era that was in force at 1970-01-01 (ISO) is assigned the value 1. Earlier eras are assigned sequentially smaller numbers. Later eras are assigned sequentially greater numbers.
- See Also:
-
MILLIS_PER_SECOND
public static final int MILLIS_PER_SECONDMilliseconds in one second (1000) (ISO)- See Also:
-
SECONDS_PER_MINUTE
public static final int SECONDS_PER_MINUTESeconds in one minute (60) (ISO)- See Also:
-
MILLIS_PER_MINUTE
public static final int MILLIS_PER_MINUTEMilliseconds in one minute (ISO)- See Also:
-
MINUTES_PER_HOUR
public static final int MINUTES_PER_HOURMinutes in one hour (ISO)- See Also:
-
SECONDS_PER_HOUR
public static final int SECONDS_PER_HOURSeconds in one hour (ISO)- See Also:
-
MILLIS_PER_HOUR
public static final int MILLIS_PER_HOURMilliseconds in one hour (ISO)- See Also:
-
HOURS_PER_DAY
public static final int HOURS_PER_DAYHours in a typical day (24) (ISO). Due to time zone offset changes, the number of hours per day can vary.- See Also:
-
MINUTES_PER_DAY
public static final int MINUTES_PER_DAYMinutes in a typical day (ISO). Due to time zone offset changes, the number of minutes per day can vary.- See Also:
-
SECONDS_PER_DAY
public static final int SECONDS_PER_DAYSeconds in a typical day (ISO). Due to time zone offset changes, the number of seconds per day can vary.- See Also:
-
MILLIS_PER_DAY
public static final int MILLIS_PER_DAYMilliseconds in a typical day (ISO). Due to time zone offset changes, the number of milliseconds per day can vary.- See Also:
-
DAYS_PER_WEEK
public static final int DAYS_PER_WEEKDays in one week (7) (ISO)- See Also:
-
HOURS_PER_WEEK
public static final int HOURS_PER_WEEKHours in a typical week. Due to time zone offset changes, the number of hours per week can vary.- See Also:
-
MINUTES_PER_WEEK
public static final int MINUTES_PER_WEEKMinutes in a typical week (ISO). Due to time zone offset changes, the number of minutes per week can vary.- See Also:
-
SECONDS_PER_WEEK
public static final int SECONDS_PER_WEEKSeconds in a typical week (ISO). Due to time zone offset changes, the number of seconds per week can vary.- See Also:
-
MILLIS_PER_WEEK
public static final int MILLIS_PER_WEEKMilliseconds in a typical week (ISO). Due to time zone offset changes, the number of milliseconds per week can vary.- See Also:
-
-
Constructor Details
-
DateTimeConstants
protected DateTimeConstants()Restrictive constructor
-