Lines Matching defs:Date
21 * A class which can consume and produce dates in SQL {@code Date} format.
23 * Dates are represented in SQL as {@code yyyy-MM-dd}. Note that this date
27 * This is unlike the familiar {@code java.util.Date} object, which also includes
32 * java.sql.Date} class are "normalized" to the time 00:00:00.000 GMT on the
33 * date implied by the time value.
36 public class Date extends java.util.Date {
41 * Constructs a {@code Date} object corresponding to the supplied year,
44 * @deprecated Use the constructor {@link #Date(long)}.
55 public Date(int theYear, int theMonth, int theDay) {
60 * Creates a date which corresponds to the day determined by the supplied
66 * milliseconds) stored in the {@code Date} object is adjusted to
70 public Date(long theDate) {
76 * Date} values do not have an hours component.
89 * Date} values do not have a minutes component.
102 * Date} values do not have a seconds component.
115 * Date} values do not have an hours component.
129 * Date} values do not have a minutes component.
143 * Date} values do not have a seconds component.
156 * Sets this date to a date supplied as a milliseconds value. The date is
165 * Store the Date based on the supplied time after removing any time
172 * Produces a string representation of the date in SQL format
174 * @return a string representation of the date in SQL format - {@code "yyyy-MM-dd"}.
194 private void format(int date, int digits, StringBuilder sb) {
195 String str = String.valueOf(date);
203 * Creates a {@code Date} from a string representation of a date in SQL
207 * the string representation of a date in SQL format - " {@code yyyy-MM-dd}".
208 * @return the {@code Date} object.
213 public static Date valueOf(String dateString) {
234 return new Date(year - 1900, month - 1, day);