public abstract class ZfDate extends java.util.Date
ZUGFeRD Specific Date with a format code.
Constructor and Description |
---|
ZfDate()
Instantiates a new zf date.
|
ZfDate(java.util.Date date)
Instantiates a new zf date.
|
ZfDate(long date)
Instantiates a new zf date.
|
ZfDate(java.lang.String formattedDate)
Instantiates a new zf date with the formatted date string
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getFormatCode()
The format code for the String representation of the Date.
|
void |
setDate(java.lang.String formattedDate)
Sets the date based on the provided formatted date string.
|
java.lang.String |
toString()
the String representation of the date applying the format given by the code.
|
after, before, clone, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, UTC
public ZfDate()
Instantiates a new zf date.
public ZfDate(java.util.Date date)
Instantiates a new zf date.
date
- the datepublic ZfDate(long date)
Instantiates a new zf date.
date
- the datepublic ZfDate(java.lang.String formattedDate)
Instantiates a new zf date with the formatted date string
formattedDate
- the formatted datepublic abstract java.lang.String getFormatCode()
The format code for the String representation of the Date.
public void setDate(java.lang.String formattedDate)
Sets the date based on the provided formatted date string.
formattedDate
- the new datepublic java.lang.String toString()
the String representation of the date applying the format given by the code.
toString
in class java.util.Date
Copyright © 2014-2018 Konik.io. All Rights Reserved.