Examples of timeZone()


Examples of com.fasterxml.jackson.annotation.JsonFormat.timezone()

            if ( !Strings.isNullOrEmpty( format.locale() ) && !JsonFormat.DEFAULT_LOCALE.equals( format.locale() ) ) {
                logger.log( Type.WARN, "JsonFormat.locale is not supported by default" );
                source.println();
                source.print( ".setLocale(\"%s\")", format.locale() );
            }
            if ( !Strings.isNullOrEmpty( format.timezone() ) && !JsonFormat.DEFAULT_TIMEZONE.equals( format.timezone() ) ) {
                logger.log( Type.WARN, "JsonFormat.timezone is not supported by default" );
                source.println();
                source.print( ".setTimezone(\"%s\")", format.timezone() );
            }
        }
View Full Code Here

Examples of com.fasterxml.jackson.annotation.JsonFormat.timezone()

            if ( !Strings.isNullOrEmpty( format.locale() ) && !JsonFormat.DEFAULT_LOCALE.equals( format.locale() ) ) {
                logger.log( Type.WARN, "JsonFormat.locale is not supported by default" );
                source.println();
                source.print( ".setLocale(\"%s\")", format.locale() );
            }
            if ( !Strings.isNullOrEmpty( format.timezone() ) && !JsonFormat.DEFAULT_TIMEZONE.equals( format.timezone() ) ) {
                logger.log( Type.WARN, "JsonFormat.timezone is not supported by default" );
                source.println();
                source.print( ".setTimezone(\"%s\")", format.timezone() );
            }
        }
View Full Code Here

Examples of com.fasterxml.jackson.annotation.JsonFormat.timezone()

                source.print( ".setLocale(\"%s\")", format.locale() );
            }
            if ( !Strings.isNullOrEmpty( format.timezone() ) && !JsonFormat.DEFAULT_TIMEZONE.equals( format.timezone() ) ) {
                logger.log( Type.WARN, "JsonFormat.timezone is not supported by default" );
                source.println();
                source.print( ".setTimezone(\"%s\")", format.timezone() );
            }
        }
        if ( property.getIgnoredProperties().isPresent() ) {
            for ( String ignoredProperty : property.getIgnoredProperties().get() ) {
                source.println();
View Full Code Here

Examples of com.webobjects.foundation.NSTimestamp.timeZone()

    }

    private NSTimestamp calculateNearestHour() {
        NSTimestamp currentTime = new NSTimestamp();

        TimeZone currentTimeZone = currentTime.timeZone();
        int currentYear = currentTime.yearOfCommonEra();
        int currentMonth = currentTime.monthOfYear();
        int currentDayOfMonth = currentTime.dayOfMonth()// [1,31]
        int currentHourOfDay = currentTime.hourOfDay();    // [0,23]
View Full Code Here

Examples of com.webobjects.foundation.NSTimestamp.timeZone()

    public void calculateNextScheduledShutdown() {
        if (!isScheduled())
            return;

        NSTimestamp currentTime = new NSTimestamp(System.currentTimeMillis(), java.util.TimeZone.getDefault());
        TimeZone currentTimeZone = currentTime.timeZone();
        int currentYear = currentTime.yearOfCommonEra();
        int currentMonth = currentTime.monthOfYear();
        int currentDayOfMonth = currentTime.dayOfMonth(); // [1,31]
        int currentHourOfDay = currentTime.hourOfDay(); // [0,23]
View Full Code Here

Examples of er.extensions.appserver.ERXSession.timeZone()

                    ERXSession.class.isAssignableFrom(wocontext.session().getClass())
                        ) {
               
              synchronized(format) {
                ERXSession session = (ERXSession)wocontext.session();
                NSTimeZone zone = NSTimeZone._nstimeZoneWithTimeZone(session.timeZone());
                NSTimestampFormatter tsFormat = (NSTimestampFormatter)format;
                NSTimeZone parseZone = tsFormat.defaultParseTimeZone();
                NSTimeZone formatZone = tsFormat.defaultFormatTimeZone();
                tsFormat.setDefaultFormatTimeZone(zone);
                tsFormat.setDefaultParseTimeZone(zone);
View Full Code Here

Examples of er.extensions.appserver.ERXSession.timeZone()

            ERXSession.class.isAssignableFrom(wocontext.session().getClass())
                ) {
           
          synchronized(format) {
            ERXSession session = (ERXSession)wocontext.session();
            NSTimeZone zone = NSTimeZone._nstimeZoneWithTimeZone(session.timeZone());
            NSTimestampFormatter tsFormat = (NSTimestampFormatter)format;
            NSTimeZone parseZone = tsFormat.defaultParseTimeZone();
            NSTimeZone formatZone = tsFormat.defaultFormatTimeZone();
            tsFormat.setDefaultFormatTimeZone(zone);
            tsFormat.setDefaultParseTimeZone(zone);
View Full Code Here

Examples of er.extensions.appserver.ERXSession.timeZone()

                    ERXSession.class.isAssignableFrom(wocontext.session().getClass())
                        ) {
               
              synchronized(format) {
                ERXSession session = (ERXSession)wocontext.session();
                NSTimeZone zone = NSTimeZone._nstimeZoneWithTimeZone(session.timeZone());
                NSTimestampFormatter tsFormat = (NSTimestampFormatter)format;
                NSTimeZone parseZone = tsFormat.defaultParseTimeZone();
                NSTimeZone formatZone = tsFormat.defaultFormatTimeZone();
                tsFormat.setDefaultFormatTimeZone(zone);
                tsFormat.setDefaultParseTimeZone(zone);
View Full Code Here

Examples of javax.ejb.ScheduleExpression.timezone()

      clonedSchedule.hour(schedule.getHour());
      clonedSchedule.dayOfWeek(schedule.getDayOfWeek());
      clonedSchedule.dayOfMonth(schedule.getDayOfMonth());
      clonedSchedule.month(schedule.getMonth());
      clonedSchedule.year(schedule.getYear());
      clonedSchedule.timezone(schedule.getTimezone());
      clonedSchedule.start(schedule.getStart());
      clonedSchedule.end(schedule.getEnd());

      return clonedSchedule;
   }
View Full Code Here

Examples of javax.ejb.ScheduleExpression.timezone()

        clonedSchedule.hour(schedule.getHour());
        clonedSchedule.dayOfWeek(schedule.getDayOfWeek());
        clonedSchedule.dayOfMonth(schedule.getDayOfMonth());
        clonedSchedule.month(schedule.getMonth());
        clonedSchedule.year(schedule.getYear());
        clonedSchedule.timezone(schedule.getTimezone());
        clonedSchedule.start(schedule.getStart());
        clonedSchedule.end(schedule.getEnd());

        return clonedSchedule;
    }
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.