Java SQL Time minTime()

Here you can find the source of minTime()

Description

The value of this constant is equivalent to 0000-00-00 00:00:00.000000000, January 1, 0001.

License

Apache License

Return

Timestamp

Declaration

public static Timestamp minTime() 

Method Source Code

//package com.java2s;
/**// w  w w. j  a  va  2 s .co  m
 * Copyright  2006-2010 Soyatec
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License. 
 *
 * $Id$
 */

import java.sql.Timestamp;

public class Main {
    private static final String MIN_TIME = "0000-00-00 00:00:00.000000000";

    /**
     * The value of this constant is equivalent to 0000-00-00
     * 00:00:00.000000000, January 1, 0001.
     * 
     * @return Timestamp
     */
    public static Timestamp minTime() {
        // yyyy-mm-dd hh:mm:ss[.fffffffff]
        return Timestamp.valueOf(MIN_TIME);
    }
}

Related

  1. isTime(final PropertyDescriptor pd)
  2. isTime(String val)
  3. isTimeInRange(java.sql.Time start, java.sql.Time end, java.util.Date d)
  4. merge(java.util.Date date, java.util.Date time)
  5. mergeDateTime(Date date, Time time)
  6. minutesToTime(int minutes)
  7. parse(String dateTimeString)
  8. parseAMPMFormat(String datetimeString)
  9. parseCalendar(final TimeZone timezone, final Locale locale, final String dateformat, final String datestring)