Back to project page Timetable.
The source code is released under:
GNU General Public License
If you think the Android project Timetable listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.timetable.android.utils; /* w w w .j av a 2s. c o m*/ import java.util.Calendar; import java.util.Date; public class FakeTimeProvider extends TimeProvider { private Calendar fakeTime = Calendar.getInstance(); public FakeTimeProvider(Date fakeTime) { setTime(fakeTime); } public FakeTimeProvider(Calendar fakeTime) { setTime(fakeTime); } @Override public Calendar getCurrDateTimeCal() { return fakeTime; } public void setTime(Date fakeTime) { this.fakeTime.setTime(fakeTime); } public void setTime(Calendar fakeTime) { this.fakeTime.setTime(fakeTime.getTime()); } }