public final class TimeSpanUtilities
extends java.lang.Object
| Constructor and Description |
|---|
TimeSpanUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(com.mindfusion.common.Duration value,
java.lang.String format)
Converts the value of the current
Duration object to its equivalent string
representation by using the specified format and the current culture. |
static java.lang.String |
format(com.mindfusion.common.Duration value,
java.lang.String format,
java.util.Locale provider)
Converts the value of the current
Duration object to its equivalent string
representation by using the specified format and culture-specific formatting information. |
static boolean |
tryParse(java.lang.String s,
com.mindfusion.common.ByRef<com.mindfusion.common.Duration> result)
Converts the string representation of a time interval to its
Duration equivalent by using
the current culture and returns a value that indicates whether the conversion succeeded. |
static boolean |
tryParse(java.lang.String s,
java.util.Locale locale,
com.mindfusion.common.ByRef<com.mindfusion.common.Duration> result)
Converts the string representation of a time interval to its
Duration equivalent by using the specified
culture-specific formatting information, and returns a value that indicates whether the conversion succeeded. |
public static boolean tryParse(java.lang.String s,
com.mindfusion.common.ByRef<com.mindfusion.common.Duration> result)
Duration equivalent by using
the current culture and returns a value that indicates whether the conversion succeeded.public static boolean tryParse(java.lang.String s,
java.util.Locale locale,
com.mindfusion.common.ByRef<com.mindfusion.common.Duration> result)
Duration equivalent by using the specified
culture-specific formatting information, and returns a value that indicates whether the conversion succeeded.public static java.lang.String format(com.mindfusion.common.Duration value,
java.lang.String format)
Duration object to its equivalent string
representation by using the specified format and the current culture.public static java.lang.String format(com.mindfusion.common.Duration value,
java.lang.String format,
java.util.Locale provider)
Duration object to its equivalent string
representation by using the specified format and culture-specific formatting information.