DateUtils

com.anywherecommerce.android.sdk.util

Class DateUtils

  • java.lang.Object

  • com.anywherecommerce.android.sdk.util.DateUtils

  • public class <span class="typeNameLabel">DateUtils</span>
    extends java.lang.Object
    

Field Summary

  Modifier and TypeField and Description`static java.util.Date``<span class="memberNameLink">

NO_EXPIRE`

Constructor Summary

  Constructor and Description`<span class="memberNameLink">

DateUtils()`

Method Summary

  Modifier and TypeMethod and Description`static java.util.Date``<span class="memberNameLink">

dateFromString(java.lang.String dateString) static long``

dateToTicks(java.util.Date date) static java.lang.String````

dateToTimeZoneFormattedString(java.util.Date date,
java.util.TimeZone timeZone)
` `static boolean

fallsWithinLast30Days(java.lang.String transDateString) static java.lang.String``

getCurrentDate() static java.lang.String``

getCurrentDateWithTimezone() static java.util.TimeZone``

getTimeZone(ContentResolver contentResolver)`

Methods inherited from class java.lang.Object

        `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

NO_EXPIRE

        `public static final java.util.Date NO_EXPIRE`

Constructor Detail

DateUtils

        `public DateUtils()`

Method Detail

dateToTicks

        `public static long dateToTicks(java.util.Date date)`

dateToTimeZoneFormattedString

        ```
        public static java.lang.String dateToTimeZoneFormattedString(java.util.Date date,
                                                                     java.util.TimeZone timeZone)
        ```

getTimeZone

        `public static java.util.TimeZone getTimeZone(ContentResolver contentResolver)`

fallsWithinLast30Days

        `public static boolean fallsWithinLast30Days(java.lang.String transDateString)`

getCurrentDateWithTimezone

        `public static java.lang.String getCurrentDateWithTimezone()`

getCurrentDate

        `public static java.lang.String getCurrentDate()`

dateFromString

        ```
        public static java.util.Date dateFromString(java.lang.String dateString)
                                             throws java.security.InvalidParameterException
        ```
        Throws:`java.security.InvalidParameterException`