public class DateCache extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DateCache.Tick |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FORMAT |
| Constructor and Description |
|---|
DateCache()
Constructor.
|
DateCache(String format)
Constructor.
|
DateCache(String format,
Locale l) |
DateCache(String format,
Locale l,
String tz) |
DateCache(String format,
Locale l,
TimeZone tz) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Date inDate)
Format a date according to our stored formatter.
|
String |
format(long inDate)
Format a date according to our stored formatter.
|
String |
formatNow(long now)
Format a date according to our stored formatter.
|
protected DateCache.Tick |
formatTick(long now) |
String |
getFormatString() |
TimeZone |
getTimeZone() |
String |
now() |
DateCache.Tick |
tick() |
public static final String DEFAULT_FORMAT
public DateCache()
public DateCache(String format)
public TimeZone getTimeZone()
public String format(Date inDate)
inDate - public String format(long inDate)
inDate - public String formatNow(long now)
now - public String now()
public DateCache.Tick tick()
protected DateCache.Tick formatTick(long now)
public String getFormatString()
Copyright © 1995-2015 Webtide. All Rights Reserved.