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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | AD | Constant (1) representing AD, years after zero (from Calendar). | |||||||||
int | AM | Constant (0) representing AM, the morning (from Calendar) | |||||||||
int | APRIL | Constant (4) representing April, the fourth month (ISO) | |||||||||
int | AUGUST | Constant (8) representing August, the eighth month (ISO) | |||||||||
int | BC | Constant (0) representing BC, years before zero (from Calendar) | |||||||||
int | BCE | Alternative constant (0) representing BCE, Before Common Era (secular) | |||||||||
int | CE | Alternative constant (1) representing CE, Common Era (secular). | |||||||||
int | DAYS_PER_WEEK | Days in one week (7) (ISO) | |||||||||
int | DECEMBER | Constant (12) representing December, the twelfth month (ISO) | |||||||||
int | FEBRUARY | Constant (2) representing February, the second month (ISO) | |||||||||
int | FRIDAY | Constant (5) representing Friday, the fifth day of the week (ISO) | |||||||||
int | HOURS_PER_DAY | Hours in a typical day (24) (ISO). | |||||||||
int | HOURS_PER_WEEK | Hours in a typical week. | |||||||||
int | JANUARY | Constant (1) representing January, the first month (ISO) | |||||||||
int | JULY | Constant (7) representing July, the seventh month (ISO) | |||||||||
int | JUNE | Constant (6) representing June, the sixth month (ISO) | |||||||||
int | MARCH | Constant (3) representing March, the third month (ISO) | |||||||||
int | MAY | Constant (5) representing May, the fifth month (ISO) | |||||||||
int | MILLIS_PER_DAY | Milliseconds in a typical day (ISO). | |||||||||
int | MILLIS_PER_HOUR | Milliseconds in one hour (ISO) | |||||||||
int | MILLIS_PER_MINUTE | Milliseconds in one minute (ISO) | |||||||||
int | MILLIS_PER_SECOND | Milliseconds in one second (1000) (ISO) | |||||||||
int | MILLIS_PER_WEEK | Milliseconds in a typical week (ISO). | |||||||||
int | MINUTES_PER_DAY | Minutes in a typical day (ISO). | |||||||||
int | MINUTES_PER_HOUR | Minutes in one hour (ISO) | |||||||||
int | MINUTES_PER_WEEK | Minutes in a typical week (ISO). | |||||||||
int | MONDAY | Constant (1) representing Monday, the first day of the week (ISO) | |||||||||
int | NOVEMBER | Constant (11) representing November, the eleventh month (ISO) | |||||||||
int | OCTOBER | Constant (10) representing October, the tenth month (ISO) | |||||||||
int | PM | Constant (1) representing PM, the afternoon (from Calendar) | |||||||||
int | SATURDAY | Constant (6) representing Saturday, the sixth day of the week (ISO) | |||||||||
int | SECONDS_PER_DAY | Seconds in a typical day (ISO). | |||||||||
int | SECONDS_PER_HOUR | Seconds in one hour (ISO) | |||||||||
int | SECONDS_PER_MINUTE | Seconds in one minute (60) (ISO) | |||||||||
int | SECONDS_PER_WEEK | Seconds in a typical week (ISO). | |||||||||
int | SEPTEMBER | Constant (9) representing September, the nineth month (ISO) | |||||||||
int | SUNDAY | Constant (7) representing Sunday, the seventh day of the week (ISO) | |||||||||
int | THURSDAY | Constant (4) representing Thursday, the fourth day of the week (ISO) | |||||||||
int | TUESDAY | Constant (2) representing Tuesday, the second day of the week (ISO) | |||||||||
int | WEDNESDAY | Constant (3) representing Wednesday, the third day of the week (ISO) |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Restrictive constructor
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constant (1) representing AD, years after zero (from Calendar).
All new chronologies with differrent 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.
Constant (0) representing AM, the morning (from Calendar)
Constant (4) representing April, the fourth month (ISO)
Constant (8) representing August, the eighth month (ISO)
Constant (0) representing BC, years before zero (from Calendar)
Alternative constant (0) representing BCE, Before Common Era (secular)
Alternative constant (1) representing CE, Common Era (secular).
All new chronologies with differrent 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.
Days in one week (7) (ISO)
Constant (12) representing December, the twelfth month (ISO)
Constant (2) representing February, the second month (ISO)
Constant (5) representing Friday, the fifth day of the week (ISO)
Hours in a typical day (24) (ISO). Due to time zone offset changes, the number of hours per day can vary.
Hours in a typical week. Due to time zone offset changes, the number of hours per week can vary.
Constant (1) representing January, the first month (ISO)
Constant (7) representing July, the seventh month (ISO)
Constant (6) representing June, the sixth month (ISO)
Constant (3) representing March, the third month (ISO)
Constant (5) representing May, the fifth month (ISO)
Milliseconds in a typical day (ISO). Due to time zone offset changes, the number of milliseconds per day can vary.
Milliseconds in one hour (ISO)
Milliseconds in one minute (ISO)
Milliseconds in one second (1000) (ISO)
Milliseconds in a typical week (ISO). Due to time zone offset changes, the number of milliseconds per week can vary.
Minutes in a typical day (ISO). Due to time zone offset changes, the number of minutes per day can vary.
Minutes in one hour (ISO)
Minutes in a typical week (ISO). Due to time zone offset changes, the number of minutes per week can vary.
Constant (1) representing Monday, the first day of the week (ISO)
Constant (11) representing November, the eleventh month (ISO)
Constant (10) representing October, the tenth month (ISO)
Constant (1) representing PM, the afternoon (from Calendar)
Constant (6) representing Saturday, the sixth day of the week (ISO)
Seconds in a typical day (ISO). Due to time zone offset changes, the number of seconds per day can vary.
Seconds in one hour (ISO)
Seconds in one minute (60) (ISO)
Seconds in a typical week (ISO). Due to time zone offset changes, the number of seconds per week can vary.
Constant (9) representing September, the nineth month (ISO)
Constant (7) representing Sunday, the seventh day of the week (ISO)
Constant (4) representing Thursday, the fourth day of the week (ISO)
Constant (2) representing Tuesday, the second day of the week (ISO)
Constant (3) representing Wednesday, the third day of the week (ISO)
Restrictive constructor