Class CalendarTool

java.lang.Object
com.polarion.wiki.util.CalendarTool

public class CalendarTool extends Object
Since:
3.4.1
Version:
$Revision$ $Date$
Author:
Stepan Roh
  • Constructor Details

    • CalendarTool

      public CalendarTool()
  • Method Details

    • getCalendarInstance

      public Calendar getCalendarInstance()
    • getCalendar

      public Calendar getCalendar(Date date)
    • getCalendar

      public Calendar getCalendar(DateOnly date)
    • getCalendarAndDaysBefore

      public Calendar getCalendarAndDaysBefore(DateOnly date, int days)
    • formatDate

      public String formatDate(Date date, String format)
    • formatUtcDateTime

      public String 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.
      Parameters:
      date - date for encoding.
      Returns:
      date string
      Since:
      3.7.3
    • formatUtcDate

      public String formatUtcDate(Date date)
      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