@Override public MutableDateTime convert(DateTime source) { return source.toMutableDateTime(); } }
@Override public MutableDateTime convert(DateTime source) { return source.toMutableDateTime(); } }
/** * Parses a {@code MutableDateTime} from the specified string using a formatter. * * @param str the string to parse, not null * @param formatter the formatter to use, not null * @since 2.0 */ public static MutableDateTime parse(String str, DateTimeFormatter formatter) { return formatter.parseDateTime(str).toMutableDateTime(); }
/** * Parses a {@code MutableDateTime} from the specified string using a formatter. * * @param str the string to parse, not null * @param formatter the formatter to use, not null * @since 2.0 */ public static MutableDateTime parse(String str, DateTimeFormatter formatter) { return formatter.parseDateTime(str).toMutableDateTime(); }
baseDir.mkdirs(); MutableDateTime mutableDateTime = DateTimes.nowUtc().toMutableDateTime(ISOChronology.getInstanceUTC()); mutableDateTime.setMillisOfDay(0); synchronized (lock) {
MutableDateTime mdt = lowerLimit.toMutableDateTime(); mdt.setZoneRetainFields(zone); lowerLimit = mdt.toDateTime(); MutableDateTime mdt = upperLimit.toMutableDateTime(); mdt.setZoneRetainFields(zone); upperLimit = mdt.toDateTime();
MutableDateTime mdt = lowerLimit.toMutableDateTime(); mdt.setZoneRetainFields(zone); lowerLimit = mdt.toDateTime(); MutableDateTime mdt = upperLimit.toMutableDateTime(); mdt.setZoneRetainFields(zone); upperLimit = mdt.toDateTime();
/** * Parses a {@code MutableDateTime} from the specified string using a formatter. * * @param str the string to parse, not null * @param formatter the formatter to use, not null * @since 2.0 */ public static MutableDateTime parse(String str, DateTimeFormatter formatter) { return formatter.parseDateTime(str).toMutableDateTime(); }
MutableDateTime mdt = lowerLimit.toMutableDateTime(); mdt.setZoneRetainFields(zone); lowerLimit = mdt.toDateTime(); MutableDateTime mdt = upperLimit.toMutableDateTime(); mdt.setZoneRetainFields(zone); upperLimit = mdt.toDateTime();
/** * Parses a {@code MutableDateTime} from the specified string using a formatter. * * @param str the string to parse, not null * @param formatter the formatter to use, not null * @since 2.0 */ public static MutableDateTime parse(String str, DateTimeFormatter formatter) { return formatter.parseDateTime(str).toMutableDateTime(); }
/** * Parses a {@code MutableDateTime} from the specified string using a formatter. * * @param str the string to parse, not null * @param formatter the formatter to use, not null * @since 2.0 */ public static MutableDateTime parse(String str, DateTimeFormatter formatter) { return formatter.parseDateTime(str).toMutableDateTime(); }
/** * Parses a {@code MutableDateTime} from the specified string using a formatter. * * @param str the string to parse, not null * @param formatter the formatter to use, not null * @since 2.0 */ public static MutableDateTime parse(String str, DateTimeFormatter formatter) { return formatter.parseDateTime(str).toMutableDateTime(); }
@Override public DateTime truncate(DateTime time) { final MutableDateTime mutableDateTime = time.toMutableDateTime(); mutableDateTime.setMillisOfSecond(0); return mutableDateTime.toDateTime(); }
@Override public DateTime truncate(DateTime time) { final MutableDateTime mutableDateTime = time.toMutableDateTime(); mutableDateTime.setMillisOfSecond(0); mutableDateTime.setSecondOfMinute(0); return mutableDateTime.toDateTime(); }
@Override public DateTime truncate(DateTime time) { final MutableDateTime mutableDateTime = time.toMutableDateTime(); mutableDateTime.setMillisOfDay(0); mutableDateTime.setDayOfMonth(1); mutableDateTime.setMonthOfYear(1); return mutableDateTime.toDateTime(); }
@Override public DateTime truncate(DateTime time) { final MutableDateTime mutableDateTime = time.toMutableDateTime(); mutableDateTime.setMillisOfDay(0); mutableDateTime.setDayOfMonth(1); mutableDateTime.setMonthOfYear(1); return mutableDateTime.toDateTime(); }
@Override public DateTime truncate(DateTime time) { final MutableDateTime mutableDateTime = time.toMutableDateTime(); mutableDateTime.setMillisOfSecond(0); mutableDateTime.setSecondOfMinute(0); mutableDateTime.setMinuteOfHour(0); return mutableDateTime.toDateTime(); }
@Override public DateTime truncate(DateTime time) { final MutableDateTime mutableDateTime = time.toMutableDateTime(); mutableDateTime.setMillisOfSecond(0); mutableDateTime.setSecondOfMinute(0); mutableDateTime.setMinuteOfHour(mutableDateTime.getMinuteOfHour() - (mutableDateTime.getMinuteOfHour() % 15)); return mutableDateTime.toDateTime(); }
@Override public DateTime truncate(DateTime time) { final MutableDateTime mutableDateTime = time.toMutableDateTime(); mutableDateTime.setMillisOfSecond(0); mutableDateTime.setSecondOfMinute(0); mutableDateTime.setMinuteOfHour(mutableDateTime.getMinuteOfHour() - (mutableDateTime.getMinuteOfHour() % 5)); return mutableDateTime.toDateTime(); }
@Override public DateTime truncate(DateTime time) { final MutableDateTime mutableDateTime = time.toMutableDateTime(); mutableDateTime.setMillisOfSecond(0); mutableDateTime.setSecondOfMinute(0); mutableDateTime.setMinuteOfHour(mutableDateTime.getMinuteOfHour() - (mutableDateTime.getMinuteOfHour() % 10)); return mutableDateTime.toDateTime(); }