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

    Modifier and Type Method Description
    java.lang.String format​(java.time.Instant date)  
    java.time.Instant parse​(java.lang.String date)  

    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 interface IDateFormat
    • parse

      public java.time.Instant parse​(java.lang.String date)
      Specified by:
      parse in interface IDateFormat