java.lang.Object | |
↳ | com.atlassian.jira.jql.util.JqlDateSupportImpl |
Default implementation for JqlDateSupport
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Try to parse the passed date string using the formats that JQL understands.
| |||||||||||
Try to parse the passed date string using the formats that JQL understands.
| |||||||||||
Converts the long to a date.
| |||||||||||
Converts the long to a date range where both values equal each other.
| |||||||||||
Try to parse the passed in date string using the formats that JQL understands.
| |||||||||||
Return a string representation of the passed date.
| |||||||||||
Return a string representation of the passed date.
| |||||||||||
Converts a date into the index-friendly format.
| |||||||||||
Returns a boolean value indicating whether the passed date string representation has duration format, e.g., 4d 1h, -1w.
| |||||||||||
Check to see if the passed string is a valid date according to JQL.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Try to parse the passed date string using the formats that JQL understands. It will consider the user's time zone when parsing the date string.
dateString | the string to parse. Cannot be null. |
---|
validate(String)
right?Try to parse the passed date string using the formats that JQL understands. It will use the passed time zone when parsing the date string.
dateString | the string to parse. Cannot be null. |
---|---|
timeZone | time zone to use when parsing. |
validate(String)
right?Converts the long to a date.
dateLong | the long to give back a date for . Cannot be null. |
---|
Converts the long to a date range where both values equal each other.
dateLong | the long to give back a date for . Cannot be null. |
---|
Try to parse the passed in date string using the formats that JQL understands. It will consider the user's time zone when parsing the date string.
It will eamine the single input string and use the implied precision to create the range If you provide only a year/month/day it will have a precision of 24 hours, ie from the start of the day to the end of the day If you supply year/month/day hour/minute, it will have a precision of 1 minute, ie from the start of the minute to the end of the minute.dateString | the string to parse. Cannot be null. |
---|
validate(String)
right?Return a string representation of the passed date. This method should just convert the date into its parseable String representation. The user's time zone will be used when formatting the date string.
date | the date to convert. Cannot be null. |
---|
Return a string representation of the passed date. This method should just convert the date into its parseable String representation. The passed time zone will be used when formatting the date string.
date | the date to convert. Cannot be null. |
---|---|
timeZone | time zone to use. Cannot be null. |
Converts a date into the index-friendly format.
date | the date |
---|
Returns a boolean value indicating whether the passed date string representation has duration format, e.g., 4d 1h, -1w.
dateString | the string to parse. |
---|
Check to see if the passed string is a valid date according to JQL.
dateString | the string to check cannot be null. |
---|