Package com.impossibl.postgres.datetime.instants

Examples of com.impossibl.postgres.datetime.instants.PreciseInstant


      int tzOffsetSecs = buffer.readInt();

      int tzOffsetMillis = (int)SECONDS.toMillis(-tzOffsetSecs);
      TimeZone zone = TimeZones.getOffsetZone(tzOffsetMillis);

      return new PreciseInstant(Instant.Type.Time, micros, zone);
    }
View Full Code Here


      }

      micros += PG_JAVA_EPOCH_DIFF_MICROS;

      if (zone != null)
        return new PreciseInstant(Instant.Type.Timestamp, micros, zone);
      else
        return new AmbiguousInstant(Instant.Type.Timestamp, micros);
    }
View Full Code Here

TOP

Related Classes of com.impossibl.postgres.datetime.instants.PreciseInstant

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.