Java Time Format formatTimeZoneID(String id)

Here you can find the source of formatTimeZoneID(String id)

Description

format Time Zone ID

License

Open Source License

Declaration

private static String formatTimeZoneID(String id) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2010, 2011 LogSaw project and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:/*  w  ww . ja v a2 s. c o m*/
 *    LogSaw project committers - initial API and implementation
 *******************************************************************************/

public class Main {
    private static String formatTimeZoneID(String id) {
        return id.replaceAll("_", " "); //$NON-NLS-1$ //$NON-NLS-2$
    }
}

Related

  1. formatTimeString(String time)
  2. formatTimeTakenNs(long startTimeNs, String message)
  3. formatTimeToString(long milisec)
  4. formatTimeToString(long seconds)
  5. formatTimeUnits(double nanos)
  6. formatToTimeStr(String str)
  7. formatUptime(long uptime)
  8. formatVideoRecordingTime(long t)
  9. getCalendarByDateTime(int dateTime, String dateFormat)