Package com.polarion.wiki.util
Class CalendarTool
java.lang.Object
com.polarion.wiki.util.CalendarTool
- Since:
- 3.4.1
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionformatDate
(Date date, String format) formatUtcDate
(Date date) Returns date string in format: Date.UTC(yyyy, MM, dd) It can be useful for generating java script code from velocity.formatUtcDateTime
(Date date) Returns date string in format: Date.UTC(yyyy, MM, dd, hh, mm, ss, SSS) It can be useful for generating java script code from velocity.getCalendar
(DateOnly date) getCalendar
(Date date) getCalendarAndDaysBefore
(DateOnly date, int days)
-
Constructor Details
-
CalendarTool
public CalendarTool()
-
-
Method Details
-
getCalendarInstance
-
getCalendar
-
getCalendar
-
getCalendarAndDaysBefore
-
formatDate
-
formatUtcDateTime
Returns date string in format: Date.UTC(yyyy, MM, dd, hh, mm, ss, SSS) It can be useful for generating java script code from velocity.- Parameters:
date
- date for encoding.- Returns:
- date string
- Since:
- 3.7.3
-
formatUtcDate
Returns date string in format: Date.UTC(yyyy, MM, dd) It can be useful for generating java script code from velocity.- Parameters:
date
- date for encoding.- Returns:
- date string
- Since:
- 3.7.3
-