Package org.joda.time

Examples of org.joda.time.LocalDateTime.toDateTime()


    public Date getInfusionsoftNow(){
        final DateTime now = new DateTime();
        final LocalDateTime serverNow = now.withZone(est).toLocalDateTime();

        return serverNow.toDateTime().toDate();
    }

    public Date getLocalNow(TimeZone zone){
        final LocalDateTime now = new LocalDateTime(forTimeZone(zone));
View Full Code Here


    }

    public Date getBeginningOfLocalDay(TimeZone zone){
        final LocalDateTime now = new LocalDateTime(forTimeZone(zone));

        return now.toDateTime().toDateMidnight().toDate();
    }

    public Date getBeginningOfLocalDay(Date date, TimeZone zone){
        final LocalDateTime now = new LocalDateTime(date.getTime(), forTimeZone(zone));
View Full Code Here

    }

    public Date getBeginningOfLocalDay(Date date, TimeZone zone){
        final LocalDateTime now = new LocalDateTime(date.getTime(), forTimeZone(zone));

        return now.toDateTime().toDateMidnight().toDate();
    }

    public Date getEndOfLocalDay(TimeZone zone){
        final LocalDateTime now = new LocalDateTime(forTimeZone(zone));
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.