![JAR search and dependency download from the Maven repository](/logo.png)
com.ibm.icu.impl.duration.DateFormatter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-client-compiler-deps Show documentation
Show all versions of vaadin-client-compiler-deps Show documentation
Vaadin is a web application framework for Rich Internet Applications (RIA).
Vaadin enables easy development and maintenance of fast and
secure rich web
applications with a stunning look and feel and a wide browser support.
It features a server-side architecture with the majority of the logic
running
on the server. Ajax technology is used at the browser-side to ensure a
rich
and interactive user experience.
/*
******************************************************************************
* Copyright (C) 2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
******************************************************************************
*/
package com.ibm.icu.impl.duration;
import java.util.Date;
import java.util.TimeZone;
/**
* Abstract formatter for dates. Differs from DateFormat in that it
* provides withLocale
and withTimeZone
methods.
*/
public interface DateFormatter {
/**
* Format the date, provided as a java Date object.
*
* @param date the date
* @return the formatted time
*/
String format(Date date);
/**
* Format the date, provided as milliseconds.
*
* @param date the date in milliseconds
* @return the formatted time
*/
String format(long date);
/**
* Returns a new DateFormatter that uses data for a new locale.
*
* @param locale the new locale to use
* @return a new formatter for the given locale
*/
DateFormatter withLocale(String localeName);
/**
* Returns a new DateFormatter that uses the new time zone.
*
* @param tz the new time zone
* @return a new formatter for the given time zone
*/
DateFormatter withTimeZone(TimeZone tz);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy