Class DateUtils

  • public final class DateUtils
    extends Object
    A utility class for parsing and formatting HTTP dates as used in cookies and other headers. This class handles dates as defined by RFC 2616 section 3.3.1 as well as some other common non-standard formats.

    This class is basically intended to be a high-performance workaround for the fact that Java SimpleDateFormat is kind of expensive to create and yet isn't thread safe.

    This class was adapted from the class with the same name from the Jetty project, licensed under the terms of the Apache Software License 2.0.