Examples of secondOfMinute()


Examples of org.elasticsearch.common.joda.time.Chronology.secondOfMinute()

        final int reps = 2000;
        final long[] input = new long[reps];
        final long[] expected = new long[reps];
        final long[] actual = new long[reps];
        final Chronology chronology = ISOChronology.getInstanceUTC();
        final TimeZoneRounding tzRounding = new TimeZoneRounding.Builder(chronology.secondOfMinute())
                .preZone(DateTimeZone.forID("Australia/Sydney"))
                .build();
        final TimeZoneRoundingCache cache = new TimeZoneRoundingCache(tzRounding, cacheSize);

        for(int i = 0; i < reps; i++) {
View Full Code Here

Examples of org.joda.time.DateTime.secondOfMinute()

     * @param calendar
     */

    public Time(final java.util.Date date, final DateTimeZone dateTimeZone) {
        final DateTime DateTime = new DateTime(date.getTime(), dateTimeZone);
        this.time = DateTime.secondOfMinute().setCopy(0);
    }

    /**
     * Create a Time object for storing a time with the time set to the
     * specified time of the Joda Time DateTime object.
View Full Code Here

Examples of org.joda.time.DateTime.secondOfMinute()

     * @param calendar
     */

    public Time(final java.util.Date date, final DateTimeZone dateTimeZone) {
        final DateTime DateTime = new DateTime(date.getTime(), dateTimeZone);
        this.time = DateTime.secondOfMinute().setCopy(0);
    }

    /**
     * Create a Time object for storing a time with the time set to the
     * specified time of the Joda Time DateTime object.
View Full Code Here

Examples of org.joda.time.DateTime.secondOfMinute()

     * @param calendar
     */

    public Time(final java.util.Date date, final DateTimeZone dateTimeZone) {
        DateTime DateTime = new DateTime(date.getTime(), dateTimeZone);
        this.time = DateTime.secondOfMinute().setCopy(0);
    }

    /**
     * Create a Time object for storing a time with the time set to the specified time of the Joda Time DateTime object.
     */
 
View Full Code Here

Examples of org.joda.time.MutableDateTime.secondOfMinute()

                        }
                        break;
                    case 's':
                        if (type == 0) {
                            if (roundUp) {
                                dateTime.secondOfMinute().roundCeiling();
                            } else {
                                dateTime.secondOfMinute().roundFloor();
                            }
                        } else if (type == 1) {
                            dateTime.addSeconds(num);
View Full Code Here

Examples of org.joda.time.MutableDateTime.secondOfMinute()

                    case 's':
                        if (type == 0) {
                            if (roundUp) {
                                dateTime.secondOfMinute().roundCeiling();
                            } else {
                                dateTime.secondOfMinute().roundFloor();
                            }
                        } else if (type == 1) {
                            dateTime.addSeconds(num);
                        } else if (type == 2) {
                            dateTime.addSeconds(-num);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.