本文整理了Java中org.joda.time.LocalTime.fromMillisOfDay()
方法的一些代码示例,展示了LocalTime.fromMillisOfDay()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LocalTime.fromMillisOfDay()
方法的具体详情如下:
包路径:org.joda.time.LocalTime
类名称:LocalTime
方法名:fromMillisOfDay
[英]Constructs a LocalTime from the specified millis of day using the ISO chronology.
The millisOfDay value may exceed the number of millis in one day, but additional days will be ignored. This method uses the UTC time zone internally.
[中]使用ISO年表从指定的毫秒天数构造LocalTime。
millisOfDay值可能超过一天中的毫秒数,但会忽略其他天数。此方法在内部使用UTC时区。
代码示例来源:origin: joda-time/joda-time
/**
* Constructs a LocalTime from the specified millis of day using the
* ISO chronology.
* <p>
* The millisOfDay value may exceed the number of millis in one day,
* but additional days will be ignored.
* This method uses the UTC time zone internally.
*
* @param millisOfDay the number of milliseconds into a day to convert
*/
public static LocalTime fromMillisOfDay(long millisOfDay) {
return fromMillisOfDay(millisOfDay, null);
}
代码示例来源:origin: JodaOrg/joda-time
/**
* Constructs a LocalTime from the specified millis of day using the
* ISO chronology.
* <p>
* The millisOfDay value may exceed the number of millis in one day,
* but additional days will be ignored.
* This method uses the UTC time zone internally.
*
* @param millisOfDay the number of milliseconds into a day to convert
*/
public static LocalTime fromMillisOfDay(long millisOfDay) {
return fromMillisOfDay(millisOfDay, null);
}
代码示例来源:origin: org.apache.avro/avro
@Override
public LocalTime fromLong(Long microsFromMidnight, Schema schema, LogicalType type) {
return LocalTime.fromMillisOfDay(microsFromMidnight / 1000);
}
}
代码示例来源:origin: org.apache.avro/avro
@Override
public LocalTime fromInt(Integer millisFromMidnight, Schema schema, LogicalType type) {
return LocalTime.fromMillisOfDay(millisFromMidnight);
}
代码示例来源:origin: apache/avro
@Override
public LocalTime fromInt(Integer millisFromMidnight, Schema schema, LogicalType type) {
return LocalTime.fromMillisOfDay(millisFromMidnight);
}
代码示例来源:origin: apache/avro
@Override
public LocalTime fromLong(Long microsFromMidnight, Schema schema, LogicalType type) {
return LocalTime.fromMillisOfDay(microsFromMidnight / 1000);
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Constructs a LocalTime from the specified millis of day using the
* ISO chronology.
* <p>
* The millisOfDay value may exceed the number of millis in one day,
* but additional days will be ignored.
* This method uses the UTC time zone internally.
*
* @param millisOfDay the number of milliseconds into a day to convert
*/
public static LocalTime fromMillisOfDay(long millisOfDay) {
return fromMillisOfDay(millisOfDay, null);
}
代码示例来源:origin: apache/drill
LocalTime lT = LocalTime.fromMillisOfDay(t);
this.value = KeyValueBuilder.initFrom(new OTime(lT.getHourOfDay(), lT.getMinuteOfHour(), lT.getSecondOfMinute(), lT.getMillisOfSecond()));
this.path = path;
代码示例来源:origin: org.springframework.data/spring-data-cassandra
@Override
public LocalTime convert(Long source) {
return LocalTime.fromMillisOfDay(source);
}
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
/**
* Constructs a LocalTime from the specified millis of day using the
* ISO chronology.
* <p>
* The millisOfDay value may exceed the number of millis in one day,
* but additional days will be ignored.
* This method uses the UTC time zone internally.
*
* @param millisOfDay the number of milliseconds into a day to convert
*/
public static LocalTime fromMillisOfDay(long millisOfDay) {
return fromMillisOfDay(millisOfDay, null);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.avro
@Override
public LocalTime fromLong(Long microsFromMidnight, Schema schema, LogicalType type) {
return LocalTime.fromMillisOfDay(microsFromMidnight / 1000);
}
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
/**
* Constructs a LocalTime from the specified millis of day using the
* ISO chronology.
* <p>
* The millisOfDay value may exceed the number of millis in one day,
* but additional days will be ignored.
* This method uses the UTC time zone internally.
*
* @param millisOfDay the number of milliseconds into a day to convert
*/
public static LocalTime fromMillisOfDay(long millisOfDay) {
return fromMillisOfDay(millisOfDay, null);
}
代码示例来源:origin: org.jadira.usertype/usertype.core
@Override
public LocalTime fromNonNullValue(Integer value) {
return LocalTime.fromMillisOfDay(value);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.joda-time
/**
* Constructs a LocalTime from the specified millis of day using the
* ISO chronology.
* <p>
* The millisOfDay value may exceed the number of millis in one day,
* but additional days will be ignored.
* This method uses the UTC time zone internally.
*
* @param millisOfDay the number of milliseconds into a day to convert
*/
public static LocalTime fromMillisOfDay(long millisOfDay) {
return fromMillisOfDay(millisOfDay, null);
}
代码示例来源:origin: org.jadira.usertype/usertype.jodatime
@Override
public LocalTime fromNonNullValue(Long value) {
return LocalTime.fromMillisOfDay(value / 1000000L);
}
代码示例来源:origin: io.virtdata/virtdata-lib-realer
/**
* Constructs a LocalTime from the specified millis of day using the
* ISO chronology.
* <p>
* The millisOfDay value may exceed the number of millis in one day,
* but additional days will be ignored.
* This method uses the UTC time zone internally.
*
* @param millisOfDay the number of milliseconds into a day to convert
*/
public static LocalTime fromMillisOfDay(long millisOfDay) {
return fromMillisOfDay(millisOfDay, null);
}
代码示例来源:origin: joda-time/joda-time-hibernate
public Object nullSafeGet(ResultSet resultSet, String string) throws SQLException {
Object timestamp = StandardBasicTypes.INTEGER.nullSafeGet(resultSet, string);
if (timestamp == null) {
return null;
}
return LocalTime.fromMillisOfDay(((Number) timestamp).intValue());
}
代码示例来源:origin: com.datastax.cassandra/cassandra-driver-extras
@Override
public LocalTime deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion)
throws InvalidTypeException {
if (bytes == null || bytes.remaining() == 0) return null;
long nanosOfDay = bigint().deserializeNoBoxing(bytes, protocolVersion);
return LocalTime.fromMillisOfDay(NANOSECONDS.toMillis(nanosOfDay));
}
代码示例来源:origin: zhicwu/cassandra-jdbc-driver
@Override
public Time deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion) throws InvalidTypeException {
if (bytes == null || bytes.remaining() == 0)
return null;
long nanosOfDay = bigint().deserializeNoBoxing(bytes, protocolVersion);
return new Time(LocalTime.fromMillisOfDay(nanosOfDay / 1000000L).toDateTimeToday().getMillis());
}
代码示例来源:origin: zhicwu/cassandra-jdbc-driver
@Override
public String deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion) throws InvalidTypeException {
if (bytes == null || bytes.remaining() == 0)
return null;
long nanosOfDay = bigint().deserializeNoBoxing(bytes, protocolVersion);
return LocalTime.fromMillisOfDay(nanosOfDay / 1000000).toString();
}
内容来源于网络,如有侵权,请联系作者删除!