@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class DateUtilities extends java.lang.Object
Constructor and Description |
---|
DateUtilities() |
Modifier and Type | Method and Description |
---|---|
static boolean |
dateIsIncluded(org.joda.time.DateTime value,
org.joda.time.DateTime start,
org.joda.time.DateTime end) |
static boolean |
dateTimeIsIncluded(org.joda.time.DateTime value,
org.joda.time.DateTime start,
org.joda.time.DateTime end) |
static java.lang.String |
formatDate(org.joda.time.DateTime value) |
static java.lang.String |
formatDate(org.joda.time.DateTime value,
java.lang.String format) |
static java.lang.String |
formatDateTime(org.joda.time.DateTime value) |
static java.lang.String |
formatExpiresDate(org.joda.time.DateTime value) |
static java.lang.String |
formatPeriod(org.joda.time.Period value) |
static java.lang.String |
formatRawDateTime(long value) |
static org.joda.time.DateTime |
parseDateTime(java.lang.String value) |
static org.joda.time.DateTime |
parseDateTime(java.lang.String value,
java.lang.String format) |
static org.joda.time.DateTime |
parseExpiresDate(java.lang.String value) |
static org.joda.time.Period |
parsePeriod(java.lang.String value) |
@ThingworxExtensionApiMethod(since={6,6}) public static org.joda.time.DateTime parseDateTime(java.lang.String value) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public static org.joda.time.DateTime parseDateTime(java.lang.String value, java.lang.String format) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String formatExpiresDate(org.joda.time.DateTime value)
@ThingworxExtensionApiMethod(since={6,6}) public static org.joda.time.DateTime parseExpiresDate(java.lang.String value)
@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String formatDateTime(org.joda.time.DateTime value)
@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String formatDate(org.joda.time.DateTime value, java.lang.String format)
@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String formatDate(org.joda.time.DateTime value)
@ThingworxExtensionApiMethod(since={6,6}) public static org.joda.time.Period parsePeriod(java.lang.String value) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String formatPeriod(org.joda.time.Period value)
@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String formatRawDateTime(long value)
@ThingworxExtensionApiMethod(since={6,6}) public static boolean dateIsIncluded(org.joda.time.DateTime value, org.joda.time.DateTime start, org.joda.time.DateTime end)
@ThingworxExtensionApiMethod(since={6,6}) public static boolean dateTimeIsIncluded(org.joda.time.DateTime value, org.joda.time.DateTime start, org.joda.time.DateTime end)