Package com.xpn.xwiki.plugin.jodatime
Class JodaTimePluginApi
- java.lang.Object
-
- com.xpn.xwiki.api.Api
-
- com.xpn.xwiki.plugin.PluginApi<JodaTimePlugin>
-
- com.xpn.xwiki.plugin.jodatime.JodaTimePluginApi
-
public class JodaTimePluginApi extends PluginApi<JodaTimePlugin>
Api for the JodaTimePlugin
-
-
Constructor Summary
Constructors Constructor Description JodaTimePluginApi(JodaTimePlugin plugin, XWikiContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.joda.time.DateTime
getDateTime()
org.joda.time.DateTime
getDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)
org.joda.time.DateTime
getDateTime(long instant)
org.joda.time.format.DateTimeFormatter
getDateTimeFormatterForPattern(String pattern)
org.joda.time.format.DateTimeFormatter
getDateTimeFormatterForStyle(String style)
org.joda.time.Duration
getDuration(long millis)
org.joda.time.Duration
getDuration(org.joda.time.ReadableInstant from, org.joda.time.ReadableInstant to)
org.joda.time.format.DateTimeFormatter
getISODateTimeFormatter()
org.joda.time.MutableDateTime
getMutableDateTime()
org.joda.time.MutableDateTime
getMutableDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)
org.joda.time.MutableDateTime
getMutableDateTime(long instant)
org.joda.time.DateTimeZone
getServerTimezone()
org.joda.time.DateTimeZone
getTimezone(int offsetHours)
org.joda.time.DateTimeZone
getTimezone(int offsetHours, int offsetMinutes)
org.joda.time.DateTimeZone
getTimezone(String locationOrOffset)
org.joda.time.DateTimeZone
getUTCTimezone()
-
Methods inherited from class com.xpn.xwiki.plugin.PluginApi
getInternalPlugin, getProtectedPlugin, setPlugin
-
Methods inherited from class com.xpn.xwiki.api.Api
convert, convert, convert, convertAttachments, getAuthorizationManager, getContextualAuthorizationManager, getXWikiContext, hasAccess, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
-
-
-
-
Constructor Detail
-
JodaTimePluginApi
public JodaTimePluginApi(JodaTimePlugin plugin, XWikiContext context)
-
-
Method Detail
-
getDateTime
public org.joda.time.DateTime getDateTime()
- See Also:
DateTime()
,JodaTimePlugin.getDateTime()
-
getDateTime
public org.joda.time.DateTime getDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)
- See Also:
DateTime(int, int, int, int, int, int, int)
,JodaTimePlugin.getDateTime(int, int, int, int, int, int, int)
-
getDateTime
public org.joda.time.DateTime getDateTime(long instant)
- See Also:
DateTime(long)
,JodaTimePlugin.getDateTime(long)
-
getMutableDateTime
public org.joda.time.MutableDateTime getMutableDateTime()
- See Also:
MutableDateTime()
,JodaTimePlugin.getMutableDateTime()
-
getMutableDateTime
public org.joda.time.MutableDateTime getMutableDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)
- See Also:
MutableDateTime(int, int, int, int, int, int, int)
,JodaTimePlugin.getMutableDateTime(int, int, int, int, int, int, int)
-
getMutableDateTime
public org.joda.time.MutableDateTime getMutableDateTime(long instant)
- See Also:
MutableDateTime(long)
,JodaTimePlugin.getMutableDateTime(long)
-
getDateTimeFormatterForPattern
public org.joda.time.format.DateTimeFormatter getDateTimeFormatterForPattern(String pattern)
- See Also:
DateTimeFormat.forPattern(String)
,JodaTimePlugin.getDateTimeFormatterForPattern(String, XWikiContext)
-
getDateTimeFormatterForStyle
public org.joda.time.format.DateTimeFormatter getDateTimeFormatterForStyle(String style)
- See Also:
DateTimeFormat.forStyle(String)
,JodaTimePlugin.getDateTimeFormatterForStyle(String, XWikiContext)
-
getServerTimezone
public org.joda.time.DateTimeZone getServerTimezone()
- See Also:
DateTimeZone.getDefault()
,JodaTimePlugin.getServerTimezone()
-
getUTCTimezone
public org.joda.time.DateTimeZone getUTCTimezone()
- See Also:
DateTimeZone.UTC
,JodaTimePlugin.getUTCTimezone()
-
getTimezone
public org.joda.time.DateTimeZone getTimezone(String locationOrOffset)
- See Also:
DateTimeZone.forID(String)
,JodaTimePlugin.getTimezone(String)
-
getTimezone
public org.joda.time.DateTimeZone getTimezone(int offsetHours)
- See Also:
DateTimeZone.forOffsetHours(int)
,JodaTimePlugin.getTimezone(int)
-
getTimezone
public org.joda.time.DateTimeZone getTimezone(int offsetHours, int offsetMinutes)
- See Also:
DateTimeZone.forOffsetHoursMinutes(int, int)
,JodaTimePlugin.getTimezone(int, int)
-
getDuration
public org.joda.time.Duration getDuration(long millis)
- See Also:
Duration(long)
,JodaTimePlugin.getDuration(long)
-
getDuration
public org.joda.time.Duration getDuration(org.joda.time.ReadableInstant from, org.joda.time.ReadableInstant to)
- See Also:
Duration(ReadableInstant, ReadableInstant)
,JodaTimePlugin.getDuration(ReadableInstant, ReadableInstant)
-
getISODateTimeFormatter
public org.joda.time.format.DateTimeFormatter getISODateTimeFormatter()
- Returns:
- an ISO8601 date time formatter
- Since:
- 5.2RC1
-
-