Package com.thingworx.common.utils
Class DateUtilities
- java.lang.Object
-
- com.thingworx.common.utils.DateUtilities
-
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class DateUtilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DateUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
parseDateTime
@ThingworxExtensionApiMethod(since={6,6}) public static org.joda.time.DateTime parseDateTime(java.lang.String value) throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
parseDateTime
@ThingworxExtensionApiMethod(since={6,6}) public static org.joda.time.DateTime parseDateTime(java.lang.String value, java.lang.String format) throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
formatExpiresDate
@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String formatExpiresDate(org.joda.time.DateTime value)
-
parseExpiresDate
@ThingworxExtensionApiMethod(since={6,6}) public static org.joda.time.DateTime parseExpiresDate(java.lang.String value)
-
formatDateTime
@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String formatDateTime(org.joda.time.DateTime value)
-
formatDate
@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String formatDate(org.joda.time.DateTime value, java.lang.String format)
-
formatDate
@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String formatDate(org.joda.time.DateTime value)
-
parsePeriod
@ThingworxExtensionApiMethod(since={6,6}) public static org.joda.time.Period parsePeriod(java.lang.String value) throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
formatPeriod
@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String formatPeriod(org.joda.time.Period value)
-
formatRawDateTime
@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String formatRawDateTime(long value)
-
dateIsIncluded
@ThingworxExtensionApiMethod(since={6,6}) public static boolean dateIsIncluded(org.joda.time.DateTime value, org.joda.time.DateTime start, org.joda.time.DateTime end)
-
dateTimeIsIncluded
@ThingworxExtensionApiMethod(since={6,6}) public static boolean dateTimeIsIncluded(org.joda.time.DateTime value, org.joda.time.DateTime start, org.joda.time.DateTime end)
-
-