1 16 package org.joda.time; 17 18 29 public class DateTimeConstants { 30 31 33 public static final int JANUARY = 1; 34 35 36 public static final int FEBRUARY = 2; 37 38 39 public static final int MARCH = 3; 40 41 42 public static final int APRIL = 4; 43 44 45 public static final int MAY = 5; 46 47 48 public static final int JUNE = 6; 49 50 51 public static final int JULY = 7; 52 53 54 public static final int AUGUST = 8; 55 56 57 public static final int SEPTEMBER = 9; 58 59 60 public static final int OCTOBER = 10; 61 62 63 public static final int NOVEMBER = 11; 64 65 66 public static final int DECEMBER = 12; 67 68 70 public static final int MONDAY = 1; 71 72 73 public static final int TUESDAY = 2; 74 75 76 public static final int WEDNESDAY = 3; 77 78 79 public static final int THURSDAY = 4; 80 81 82 public static final int FRIDAY = 5; 83 84 85 public static final int SATURDAY = 6; 86 87 88 public static final int SUNDAY = 7; 89 90 91 92 public static final int AM = 0; 93 94 95 public static final int PM = 1; 96 97 98 99 public static final int BC = 0; 100 101 public static final int BCE = 0; 102 103 111 public static final int AD = 1; 112 120 public static final int CE = 1; 121 122 123 124 public static final int MILLIS_PER_SECOND = 1000; 125 126 127 public static final int SECONDS_PER_MINUTE = 60; 128 129 public static final int MILLIS_PER_MINUTE = MILLIS_PER_SECOND * SECONDS_PER_MINUTE; 130 131 132 public static final int MINUTES_PER_HOUR = 60; 133 134 public static final int SECONDS_PER_HOUR = SECONDS_PER_MINUTE * MINUTES_PER_HOUR; 135 136 public static final int MILLIS_PER_HOUR = MILLIS_PER_MINUTE * MINUTES_PER_HOUR; 137 138 140 public static final int HOURS_PER_DAY = 24; 141 143 public static final int MINUTES_PER_DAY = MINUTES_PER_HOUR * HOURS_PER_DAY; 144 146 public static final int SECONDS_PER_DAY = SECONDS_PER_HOUR * HOURS_PER_DAY; 147 149 public static final int MILLIS_PER_DAY = MILLIS_PER_HOUR * HOURS_PER_DAY; 150 151 152 public static final int DAYS_PER_WEEK = 7; 153 155 public static final int HOURS_PER_WEEK = HOURS_PER_DAY * DAYS_PER_WEEK; 156 158 public static final int MINUTES_PER_WEEK = MINUTES_PER_DAY * DAYS_PER_WEEK; 159 161 public static final int SECONDS_PER_WEEK = SECONDS_PER_DAY * DAYS_PER_WEEK; 162 164 public static final int MILLIS_PER_WEEK = MILLIS_PER_DAY * DAYS_PER_WEEK; 165 166 169 protected DateTimeConstants() { 170 } 171 172 } 173 | Popular Tags |