Package org.robolectric.shadows
Class ShadowTime
java.lang.Object
org.robolectric.shadows.ShadowTime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected void__constructor__(Time other) protected void__constructor__(String timezone) protected booleanprotected booleanprotected voidprotected voidprotected static intprotected Stringprotected Stringprotected Stringformat3339(boolean allDay) protected static intprotected static Stringprotected static intgetJulianDay(long millis, long gmtoff) protected static booleanprotected booleanprotected booleanprotected 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 voidprotected 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
-