Example usage for org.joda.time DateMidnight now

List of usage examples for org.joda.time DateMidnight now

Introduction

In this page you can find the example usage for org.joda.time DateMidnight now.

Prototype

public static DateMidnight now(Chronology chronology) 

Source Link

Document

Obtains a DateMidnight set to the current system millisecond time using the specified chronology.

Usage

From source file:com.proofpoint.event.collector.combiner.StoredObjectCombiner.java

License:Apache License

private DateMidnight getEndDate() {
    return DateMidnight.now(UTC).minusDays(endDaysAgo);
}

From source file:com.proofpoint.event.collector.combiner.StoredObjectCombiner.java

License:Apache License

private DateMidnight getStartDate() {
    return DateMidnight.now(UTC).minusDays(startDaysAgo);
}

From source file:io.viewserver.expression.function.DateToBusinessDay.java

License:Apache License

@Override
public int getInt(int row) {
    return businessDayCalculator.getBusinessDay(new DateMidnight(dateExpression.getLong(row), DateTimeZone.UTC),
            DateMidnight.now(DateTimeZone.UTC));
}

From source file:io.viewserver.expression.function.DayToBusinessDay.java

License:Apache License

@Override
public int getInt(int row) {

    return businessDayCalculator.getBusinessDay(
            new DateMidnight(DateTimeZone.UTC).minusDays(dateExpression.getInt(row)),
            DateMidnight.now(DateTimeZone.UTC));
}