Examples of TimeZone


Examples of java.util.TimeZone

        String iCalFormat   = null;
        int    startPoint   = 0;
        String tzName       = null;

        TimeZone offsetZone = java.util.TimeZone.getDefault();

        if (iCalString.startsWith("TZID=")){
            // Time for a specific Time Zone
            startPoint = iCalString.indexOf(":") + 1;
            // Get timezone.
View Full Code Here

Examples of java.util.TimeZone

        return date;
    }

    public TimeZone getTimeZoneFromDate(String iCalString, int startPoint)
    {
        TimeZone tz = null;
        try {
            String tzName = null;
            if (iCalString.indexOf("TZID=/softwarestudio.org/Olson_20011030_5/") != -1)
            {
                tzName = iCalString.substring("TZID=/softwarestudio.org/Olson_20011030_5/".length(),startPoint -1);
View Full Code Here

Examples of java.util.TimeZone

    /**
     * Tests this class.
     */
    public static void main(final String[] args) throws Exception {
        final TimeZone tz = TimeZone.getTimeZone("UTC");
        final Calendar calendar = Calendar.getInstance(tz);
        calendar.clear();
        calendar.set(1970, 0, 1);
        new TimeScaleUnit(SECOND, calendar.getTime());
    }
View Full Code Here

Examples of javax.time.calendar.TimeZone

            tree = tree.get(parsedZoneId);
            ++count;
        }
       
        if (parsedZoneId != null && preparedIDs.contains(parsedZoneId)) {
            TimeZone zone = TimeZone.timeZone(parsedZoneId);
            context.setZone(zone);
            return position + parsedZoneId.length();
        } else {
            return ~position;
        }
View Full Code Here

Examples of net.fortuna.ical4j.model.TimeZone

   *
   * @param rule
   * @return date of recurrence end
   */
  public static Date getRecurrenceEndDate(String rule) {
    TimeZone tz = TimeZoneRegistryFactory.getInstance().createRegistry().getTimeZone(java.util.Calendar.getInstance().getTimeZone().getID());
   
    if (rule != null) {
      try {
        Recur recur = new Recur(rule);
        Date dUntil = recur.getUntil();
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.