Sha256: 1e92c0668880d4d59f5bb4068eb3c0a34441f336f5dd28bf1ff8242910b6fb7e
Contents?: true
Size: 835 Bytes
Versions: 32
Compression:
Stored size: 835 Bytes
Contents
package org.embulk.spi.type; import org.embulk.spi.time.Timestamp; public class TimestampType extends AbstractType { static final TimestampType TIMESTAMP = new TimestampType(); private static final String DEFAULT_FORMAT = "%Y-%m-%d %H:%M:%S.%6N %z"; private final String format; private TimestampType() { this(null); } private TimestampType(String format) { super("timestamp", Timestamp.class, 12); // long msec + int nsec this.format = format; } public TimestampType withFormat(String format) { // TODO is this correct design...? return new TimestampType(format); } public String getFormat() { if (format == null) { return DEFAULT_FORMAT; } else { return format; } } }
Version data entries
32 entries across 32 versions & 1 rubygems