Package com.alibaba.wasp.jdbc.value

Examples of com.alibaba.wasp.jdbc.value.ValueTime


   */
  public static Time convertTime(Value value, Calendar calendar) {
    if (value == ValueNull.INSTANCE) {
      return null;
    }
    ValueTime t = (ValueTime) value.convertTo(Value.TIME);
    Calendar cal = (Calendar) calendar.clone();
    cal.clear();
    cal.setLenient(true);
    long nanos = t.getNanos();
    long millis = nanos / 1000000;
    nanos -= millis * 1000000;
    long s = millis / 1000;
    millis -= s * 1000;
    long m = s / 60;
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.jdbc.value.ValueTime

Copyright © 2018 www.massapicom. 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.