本文整理了Java中org.joda.time.LocalDateTime.getMillisOfDay()
方法的一些代码示例,展示了LocalDateTime.getMillisOfDay()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LocalDateTime.getMillisOfDay()
方法的具体详情如下:
包路径:org.joda.time.LocalDateTime
类名称:LocalDateTime
方法名:getMillisOfDay
[英]Get the millis of day field value.
[中]获取天的毫秒字段值。
代码示例来源:origin: org.jboss.oreva/odata-core
private static boolean localDateTimeHasTimeComponents(Object obj) {
return ((LocalDateTime) obj).getMillisOfDay() != 0;
}
代码示例来源:origin: odata4j/odata4j
private static boolean localDateTimeHasTimeComponents(Object obj) {
return ((LocalDateTime) obj).getMillisOfDay() != 0;
}
代码示例来源:origin: org.sonatype.sisu/sisu-odata4j
private static boolean localDateTimeHasTimeComponents(Object obj) {
return ((LocalDateTime) obj).getMillisOfDay() != 0;
}
代码示例来源:origin: org.kuali.kpme/kpme-core-api
@Override
public Calendar marshal(LocalDateTime localTime) throws Exception {
if (localTime == null) {
return null;
}
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(localTime.getMillisOfDay());
return calendar;
}
代码示例来源:origin: odata4j/odata4j
private static boolean localDateTimeHasDateComponents(Object obj) {
return ((LocalDateTime) obj).toDateTime(DateTimeZone.UTC).getMillis() != ((LocalDateTime) obj).getMillisOfDay();
}
}
代码示例来源:origin: org.jboss.oreva/odata-core
private static boolean localDateTimeHasDateComponents(Object obj) {
return ((LocalDateTime) obj).toDateTime(DateTimeZone.UTC).getMillis() != ((LocalDateTime) obj).getMillisOfDay();
}
}
代码示例来源:origin: org.sonatype.sisu/sisu-odata4j
private static boolean localDateTimeHasDateComponents(Object obj) {
return ((LocalDateTime) obj).toDateTime(DateTimeZone.UTC).getMillis() != ((LocalDateTime) obj).getMillisOfDay();
}
}
代码示例来源:origin: org.marketcetera/core
/**
* Indicate if the interval contains the given point in time.
*
* @param inTime a <code>DateTime</code> value
* @return a <code>boolean</code> value
*/
public boolean contains(DateTime inTime)
{
DateTime expectedIntervalStart = inTime.withTimeAtStartOfDay().plus(WALLCLOCK_SECONDS_LOCAL.parseLocalDateTime(begin).getMillisOfDay());
DateTime expectedIntervalEnd = inTime.withTimeAtStartOfDay().plus(WALLCLOCK_SECONDS_LOCAL.parseLocalDateTime(end).getMillisOfDay());
org.joda.time.Interval interval = new org.joda.time.Interval(expectedIntervalStart,
expectedIntervalEnd);
boolean result = interval.contains(inTime);
SLF4JLoggerProxy.debug(this,
"{} contains {}: {}",
this,
inTime,
result);
return result;
}
/**
代码示例来源:origin: de.javakaffee/kryo-serializers
@Override
public void write(Kryo kryo, Output output, LocalDateTime localDateTime) {
final int packedYearMonthDay = localDateTime.getYear() * 13 * 32 +
localDateTime.getMonthOfYear() * 32 +
localDateTime.getDayOfMonth();
output.writeLong((long)packedYearMonthDay * 86400000 + localDateTime.getMillisOfDay(), true);
final String chronologyId =
IdentifiableChronology.getChronologyId(localDateTime.getChronology());
output.writeString(chronologyId == null ? "" : chronologyId);
}
}
代码示例来源:origin: magro/kryo-serializers
@Override
public void write(Kryo kryo, Output output, LocalDateTime localDateTime) {
final int packedYearMonthDay = localDateTime.getYear() * 13 * 32 +
localDateTime.getMonthOfYear() * 32 +
localDateTime.getDayOfMonth();
output.writeLong((long)packedYearMonthDay * 86400000 + localDateTime.getMillisOfDay(), true);
final String chronologyId =
IdentifiableChronology.getChronologyId(localDateTime.getChronology());
output.writeString(chronologyId == null ? "" : chronologyId);
}
}
代码示例来源:origin: org.kuali.kpme/kpme-tk-lm-impl
if(calendarEntry.getEndPeriodLocalDateTime().getMillisOfDay() == 0) {
内容来源于网络,如有侵权,请联系作者删除!