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