Class Time
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.model.time.Time
-
public class Time extends Object
Transforming model for <time> element. The format is <time> datetime="2013-12-30"</time>
-
-
Field Summary
Fields Modifier and Type Field Description static org.joda.time.format.DateTimeFormatter
DATE_TIME_FORMATTER
The pattern for datetime attribute of TIME element.static String
STORAGE_DATE_FORMAT
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCssClasses()
org.joda.time.LocalDateTime
getDateTime()
Deprecated, for removal: This API element is subject to removal in a future version.since 8.7 in favour ofgetLocalDate()
String
getDatetimeString()
LocalDate
getLocalDate()
int
hashCode()
void
setCssClasses(String cssClasses)
-
-
-
Field Detail
-
STORAGE_DATE_FORMAT
public static final String STORAGE_DATE_FORMAT
- See Also:
- Constant Field Values
-
DATE_TIME_FORMATTER
public static final org.joda.time.format.DateTimeFormatter DATE_TIME_FORMATTER
The pattern for datetime attribute of TIME element. Example: 2013-12-30
-
-
Constructor Detail
-
Time
public Time(String datetimeString) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-
Method Detail
-
getDatetimeString
public String getDatetimeString()
-
getDateTime
@Deprecated(forRemoval=true) public org.joda.time.LocalDateTime getDateTime()
Deprecated, for removal: This API element is subject to removal in a future version.since 8.7 in favour ofgetLocalDate()
-
getLocalDate
public LocalDate getLocalDate()
-
getCssClasses
public String getCssClasses()
-
setCssClasses
public void setCssClasses(String cssClasses)
-
-