2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.yangtools.yang.common;
11 import java.text.SimpleDateFormat;
13 public class SimpleDateFormatUtil {
15 private static final ThreadLocal<SimpleDateFormat> REVISION_FORMAT = new ThreadLocal<SimpleDateFormat>() {
17 protected SimpleDateFormat initialValue() {
18 return new SimpleDateFormat("yyyy-MM-dd");
21 public void set(SimpleDateFormat value) {
22 throw new UnsupportedOperationException();
27 public static SimpleDateFormat getRevisionFormat() {
28 return REVISION_FORMAT.get();