Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.layout.format

public Class CurrentDate

extends Object
implements LayoutFormatter
Class Inheritance
All Implemented Interfaces
org.jabref.logic.layout.LayoutFormatter
Imports
java.time.ZonedDateTime, java.time.format.DateTimeFormatter, org.jabref.logic.layout.LayoutFormatter

Inserts the current date (the time a database is being exported).

If a fieldText is given, it must be a valid DateTimeFormatter pattern. If none is given, the format pattern will be yyyy-MM-dd hh:mm:ss z. This follows ISO-8601. Reason: https://xkcd.com/1179/.

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
format(String fieldText)

Implements org.jabref.logic.layout.LayoutFormatter.format.

Failure Mode:

Formatters should be robust in the sense that they always return some relevant string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_FORMATback to summary
private static final String DEFAULT_FORMAT

Constructor Detail

CurrentDateback to summary
public CurrentDate()

Method Detail

formatback to summary
public String format(String fieldText)

Implements org.jabref.logic.layout.LayoutFormatter.format.

Doc from org.jabref.logic.layout.LayoutFormatter.format.

Failure Mode:

Formatters should be robust in the sense that they always return some relevant string.

If the formatter can detect an invalid input it should return the original string otherwise it may simply return a wrong output.

Annotations
@Override