public class TimestampUtils extends Object
Modifier and Type | Field and Description |
---|---|
static BigDecimal |
BILLION_BIG_DECIMAL |
Constructor and Description |
---|
TimestampUtils() |
Modifier and Type | Method and Description |
---|---|
static Timestamp |
decimalToTimestamp(HiveDecimal d) |
static Timestamp |
doubleToTimestamp(double f) |
static double |
getDouble(Timestamp ts)
Convert the timestamp to a double measured in seconds.
|
static long |
millisToSeconds(long millis)
Rounds the number of milliseconds relative to the epoch down to the nearest whole number of
seconds.
|
public static final BigDecimal BILLION_BIG_DECIMAL
public static double getDouble(Timestamp ts)
public static Timestamp doubleToTimestamp(double f)
public static Timestamp decimalToTimestamp(HiveDecimal d)
public static long millisToSeconds(long millis)
Copyright © 2016 The Apache Software Foundation. All rights reserved.