Class ShadowTime

java.lang.Object
org.robolectric.shadows.ShadowTime

@Implements(android.text.format.Time.class) public class ShadowTime extends Object
  • Constructor Details

    • ShadowTime

      public ShadowTime()
  • Method Details

    • setToNow

      @Implementation(maxSdk=20) protected void setToNow()
    • __constructor__

      @Implementation(maxSdk=20) protected void __constructor__()
    • __constructor__

      @Implementation(maxSdk=20) protected void __constructor__(String timezone)
    • __constructor__

      @Implementation(maxSdk=20) protected void __constructor__(Time other)
    • set

      @Implementation(maxSdk=20) protected void set(Time other)
    • isEpoch

      @Implementation(maxSdk=20) protected static boolean isEpoch(Time time)
    • getJulianDay

      @Implementation(maxSdk=20) protected static int getJulianDay(long millis, long gmtoff)
    • setJulianDay

      @Implementation(maxSdk=20) protected long setJulianDay(int julianDay)
    • set

      @Implementation(maxSdk=20) protected void set(long millis)
    • toMillis

      @Implementation(maxSdk=20) protected long toMillis(boolean ignoreDst)
    • set

      @Implementation(maxSdk=20) protected void set(int second, int minute, int hour, int monthDay, int month, int year)
    • set

      @Implementation(maxSdk=20) protected void set(int monthDay, int month, int year)
    • clear

      @Implementation(maxSdk=20) protected void clear(String timezone)
    • getCurrentTimezone

      @Implementation(maxSdk=20) protected static String getCurrentTimezone()
    • switchTimezone

      @Implementation(maxSdk=20) protected void switchTimezone(String timezone)
    • compare

      @Implementation(maxSdk=20) protected static int compare(Time a, Time b)
    • before

      @Implementation(maxSdk=20) protected boolean before(Time other)
    • after

      @Implementation(maxSdk=20) protected boolean after(Time other)
    • parse

      @Implementation(maxSdk=20) protected boolean parse(String timeString)
    • format2445

      @Implementation(maxSdk=20) protected String format2445()
    • format3339

      @Implementation(maxSdk=20) protected String format3339(boolean allDay)
    • nativeParse3339

      @Implementation(maxSdk=20) protected boolean nativeParse3339(String s)
    • getChar

      @Implementation(minSdk=21) protected static int getChar(String s, int spos, int mul)
    • checkChar

      @Implementation(minSdk=21) protected void checkChar(String s, int spos, char expected)
    • format

      @Implementation(maxSdk=20) protected String format(String format)