Java SQL Date now()

Here you can find the source of now()

Description

now

License

Open Source License

Declaration

public static java.util.Date now() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.time.LocalDateTime;
import java.time.ZoneId;

public class Main {
    public static java.util.Date now() {
        return java.sql.Date.from(LocalDateTime.now().atZone(ZoneId.systemDefault()).toInstant());
        //return java.util.Date.from(new java.util.Date().toInstant());
    }/* w  w  w.  j  av  a 2s. c o  m*/
}

Related

  1. hexToBin(String sHexString)
  2. isLastDayOfMonth(String theDataStr)
  3. isSimpleColumnType(Class columnType)
  4. isSimpleType(Object obj)
  5. issue20()
  6. nowPlus(int parts, int value)
  7. parseStringValue(Class returnType, String value)
  8. serialize(Instant sourceValue)
  9. stringToMillis(String str)