public class

DateTimeConstants

extends Object
java.lang.Object
   ↳ org.joda.time.DateTimeConstants

Class Overview

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.

Summary

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
DateTimeConstants()
Restrictive constructor
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final 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. 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 Value: 1 (0x00000001)

public static final int AM

Constant (0) representing AM, the morning (from Calendar)

Constant Value: 0 (0x00000000)

public static final int APRIL

Constant (4) representing April, the fourth month (ISO)

Constant Value: 4 (0x00000004)

public static final int AUGUST

Constant (8) representing August, the eighth month (ISO)

Constant Value: 8 (0x00000008)

public static final int BC

Constant (0) representing BC, years before zero (from Calendar)

Constant Value: 0 (0x00000000)

public static final int BCE

Alternative constant (0) representing BCE, Before Common Era (secular)

Constant Value: 0 (0x00000000)

public static final int CE

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.

Constant Value: 1 (0x00000001)

public static final int DAYS_PER_WEEK

Days in one week (7) (ISO)

Constant Value: 7 (0x00000007)

public static final int DECEMBER

Constant (12) representing December, the twelfth month (ISO)

Constant Value: 12 (0x0000000c)

public static final int FEBRUARY

Constant (2) representing February, the second month (ISO)

Constant Value: 2 (0x00000002)

public static final int FRIDAY

Constant (5) representing Friday, the fifth day of the week (ISO)

Constant Value: 5 (0x00000005)

public static final int HOURS_PER_DAY

Hours in a typical day (24) (ISO). Due to time zone offset changes, the number of hours per day can vary.

Constant Value: 24 (0x00000018)

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.

Constant Value: 168 (0x000000a8)

public static final int JANUARY

Constant (1) representing January, the first month (ISO)

Constant Value: 1 (0x00000001)

public static final int JULY

Constant (7) representing July, the seventh month (ISO)

Constant Value: 7 (0x00000007)

public static final int JUNE

Constant (6) representing June, the sixth month (ISO)

Constant Value: 6 (0x00000006)

public static final int MARCH

Constant (3) representing March, the third month (ISO)

Constant Value: 3 (0x00000003)

public static final int MAY

Constant (5) representing May, the fifth month (ISO)

Constant Value: 5 (0x00000005)

public static final int MILLIS_PER_DAY

Milliseconds in a typical day (ISO). Due to time zone offset changes, the number of milliseconds per day can vary.

Constant Value: 86400000 (0x05265c00)

public static final int MILLIS_PER_HOUR

Milliseconds in one hour (ISO)

Constant Value: 3600000 (0x0036ee80)

public static final int MILLIS_PER_MINUTE

Milliseconds in one minute (ISO)

Constant Value: 60000 (0x0000ea60)

public static final int MILLIS_PER_SECOND

Milliseconds in one second (1000) (ISO)

Constant Value: 1000 (0x000003e8)

public static final int MILLIS_PER_WEEK

Milliseconds in a typical week (ISO). Due to time zone offset changes, the number of milliseconds per week can vary.

Constant Value: 604800000 (0x240c8400)

public static final int MINUTES_PER_DAY

Minutes in a typical day (ISO). Due to time zone offset changes, the number of minutes per day can vary.

Constant Value: 1440 (0x000005a0)

public static final int MINUTES_PER_HOUR

Minutes in one hour (ISO)

Constant Value: 60 (0x0000003c)

public static final int MINUTES_PER_WEEK

Minutes in a typical week (ISO). Due to time zone offset changes, the number of minutes per week can vary.

Constant Value: 10080 (0x00002760)

public static final int MONDAY

Constant (1) representing Monday, the first day of the week (ISO)

Constant Value: 1 (0x00000001)

public static final int NOVEMBER

Constant (11) representing November, the eleventh month (ISO)

Constant Value: 11 (0x0000000b)

public static final int OCTOBER

Constant (10) representing October, the tenth month (ISO)

Constant Value: 10 (0x0000000a)

public static final int PM

Constant (1) representing PM, the afternoon (from Calendar)

Constant Value: 1 (0x00000001)

public static final int SATURDAY

Constant (6) representing Saturday, the sixth day of the week (ISO)

Constant Value: 6 (0x00000006)

public static final int SECONDS_PER_DAY

Seconds in a typical day (ISO). Due to time zone offset changes, the number of seconds per day can vary.

Constant Value: 86400 (0x00015180)

public static final int SECONDS_PER_HOUR

Seconds in one hour (ISO)

Constant Value: 3600 (0x00000e10)

public static final int SECONDS_PER_MINUTE

Seconds in one minute (60) (ISO)

Constant Value: 60 (0x0000003c)

public static final int SECONDS_PER_WEEK

Seconds in a typical week (ISO). Due to time zone offset changes, the number of seconds per week can vary.

Constant Value: 604800 (0x00093a80)

public static final int SEPTEMBER

Constant (9) representing September, the nineth month (ISO)

Constant Value: 9 (0x00000009)

public static final int SUNDAY

Constant (7) representing Sunday, the seventh day of the week (ISO)

Constant Value: 7 (0x00000007)

public static final int THURSDAY

Constant (4) representing Thursday, the fourth day of the week (ISO)

Constant Value: 4 (0x00000004)

public static final int TUESDAY

Constant (2) representing Tuesday, the second day of the week (ISO)

Constant Value: 2 (0x00000002)

public static final int WEDNESDAY

Constant (3) representing Wednesday, the third day of the week (ISO)

Constant Value: 3 (0x00000003)

Protected Constructors

protected DateTimeConstants ()

Restrictive constructor