Example usage for org.joda.time LocalTime LocalTime

List of usage examples for org.joda.time LocalTime LocalTime

Introduction

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

Prototype

public LocalTime(int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond,
        Chronology chronology) 

Source Link

Document

Constructs an instance set to the specified time using the specified chronology, whose zone is ignored.

Usage

From source file:com.helger.datetime.PDTFactory.java

License:Apache License

@Nonnull
public static LocalTime createLocalTime(final int nHours, final int nMinutes, final int nSeconds,
        final int nMilliSecs) {
    // Always using UTC internally!
    return new LocalTime(nHours, nMinutes, nSeconds, nMilliSecs, getLocalChronology());
}

From source file:de.avanux.smartapplianceenabler.appliance.TimeOfDay.java

License:Open Source License

public LocalTime toLocalTime() {
    return new LocalTime(hour, minute, second, 0, ISOChronology.getInstance());
}