Package org.threeten.bp

Examples of org.threeten.bp.OffsetDateTime.toLocalDateTime()


   * @return the SQL time-stamp, not null
   */
  public static Timestamp toSqlTimestamp(Instant instant) {
    ArgumentChecker.notNull(instant, "instant");
    OffsetDateTime utc = OffsetDateTime.ofInstant(instant, ZoneOffset.UTC);
    return toSqlDateTime(utc.toLocalDateTime());
  }

  /**
   * Creates an {@code Instant} from an SQL time-stamp.
   *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.