Sha256: 8c69f64c9d73be3feeb1c19dab7a9de6a8c4fc844cf71131941ce3e96907e291
Contents?: true
Size: 891 Bytes
Versions: 12
Compression:
Stored size: 891 Bytes
Contents
package org.embulk.filter.timestamp_format.cast; import org.embulk.filter.timestamp_format.TimestampFormatter; import org.embulk.filter.timestamp_format.TimestampUnit; import org.embulk.spi.DataException; import org.embulk.spi.time.Timestamp; public class TimestampCast { private TimestampCast() {} public static String asString(Timestamp value, TimestampFormatter formatter) throws DataException { return formatter.format(value); } public static Timestamp asTimestamp(Timestamp value) throws DataException { return value; } public static long asLong(Timestamp value, TimestampUnit toUnit) throws DataException { return TimestampUnit.toLong(value, toUnit); } public static double asDouble(Timestamp value, TimestampUnit toUnit) throws DataException { return TimestampUnit.toDouble(value, toUnit); } }
Version data entries
12 entries across 12 versions & 1 rubygems