Package org.robolectric.shadows
Class ShadowTime
java.lang.Object
org.robolectric.shadows.ShadowTime
@Implements(android.text.format.Time.class) public class ShadowTime extends Object
-
Constructor Summary
Constructors Constructor Description ShadowTime() -
Method Summary
Modifier and Type Method Description protected void__constructor__()protected void__constructor__(Time other)protected void__constructor__(String timezone)protected booleanafter(Time other)protected booleanbefore(Time other)protected voidcheckChar(String s, int spos, char expected)protected voidclear(String timezone)protected static intcompare(Time a, Time b)protected Stringformat(String format)protected Stringformat2445()protected Stringformat3339(boolean allDay)protected static intgetChar(String s, int spos, int mul)protected static StringgetCurrentTimezone()protected static intgetJulianDay(long millis, long gmtoff)protected static booleanisEpoch(Time time)protected booleannativeParse3339(String s)protected booleanparse(String timeString)protected voidset(int monthDay, int month, int year)protected voidset(int second, int minute, int hour, int monthDay, int month, int year)protected voidset(long millis)protected voidset(Time other)protected longsetJulianDay(int julianDay)protected voidsetToNow()protected voidswitchTimezone(String timezone)protected longtoMillis(boolean ignoreDst)
-
Constructor Details
-
ShadowTime
public ShadowTime()
-
-
Method Details
-
setToNow
-
__constructor__
-
__constructor__
-
__constructor__
-
set
-
isEpoch
-
getJulianDay
-
setJulianDay
-
set
-
toMillis
-
set
@Implementation(maxSdk=20) protected void set(int second, int minute, int hour, int monthDay, int month, int year) -
set
-
clear
-
getCurrentTimezone
-
switchTimezone
-
compare
-
before
-
after
-
parse
-
format2445
-
format3339
-
nativeParse3339
-
getChar
-
checkChar
-
format
-