Package gaiasky.desktop.format
Class DesktopDateFormat
java.lang.Object
gaiasky.desktop.format.DesktopDateFormat
- All Implemented Interfaces:
IDateFormat
public class DesktopDateFormat extends java.lang.Object implements IDateFormat
-
Constructor Summary
Constructors Constructor Description DesktopDateFormat(java.lang.String pattern)
DesktopDateFormat(java.util.Locale loc, boolean date, boolean time)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DesktopDateFormat
public DesktopDateFormat(java.lang.String pattern) -
DesktopDateFormat
public DesktopDateFormat(java.util.Locale loc, boolean date, boolean time)
-
-
Method Details
-
format
public java.lang.String format(java.time.Instant date)- Specified by:
format
in interfaceIDateFormat
-
parse
public java.time.Instant parse(java.lang.String date)- Specified by:
parse
in interfaceIDateFormat
-