All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.activiti.engine.impl.util.TimeZoneUtil Maven / Gradle / Ivy

The newest version!
package org.activiti.engine.impl.util;

import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.TimeZone;

public class TimeZoneUtil {

  public static Calendar convertToTimeZone(Calendar time, TimeZone timeZone) {
    Calendar foreignTime = new GregorianCalendar(timeZone);
    foreignTime.setTimeInMillis(time.getTimeInMillis());

    return foreignTime;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy