Lines Matching refs:time
401 // The time should be normalized to UTC
409 // The time should be normalized to UTC
525 Time time = new Time();
528 // day for 12am and then check that if we change the time we get the
535 time.set(0, 0, 0, monthDay, 0, 2008);
536 time.timezone = mTimeZones[zoneIndex];
537 long millis = time.normalize(true);
539 Log.i("TimeTest", time.format("%B %d, %Y"));
543 int julianDay = Time.getJulianDay(millis, time.gmtoff);
545 // Change the time during the day and check that we get the same
549 time.set(0, minute, hour, monthDay, 0, 2008);
550 millis = time.normalize(true);
551 int day = Time.getJulianDay(millis, time.gmtoff);
553 Log.e("TimeTest", "Julian day: " + day + " at time "
554 + time.hour + ":" + time.minute
556 + " timezone: " + time.timezone);
567 Time time = new Time();
576 time.set(0, 0, 0, monthDay, 0, 2008);
577 time.timezone = mTimeZones[zoneIndex];
578 long millis = time.normalize(true);
580 Log.i("TimeTest", time.format("%B %d, %Y"));
582 int julianDay = Time.getJulianDay(millis, time.gmtoff);
584 time.setJulianDay(julianDay);
586 // Some places change daylight saving time at 12am and so there
588 // the time is set to 1am.
592 assertTrue(time.hour == 0 || time.hour == 1);
593 assertEquals(0, time.minute);
594 assertEquals(0, time.second);
596 millis = time.toMillis(false);
597 int day = Time.getJulianDay(millis, time.gmtoff);
599 Log.i("TimeTest", "Error: gmtoff " + (time.gmtoff / 3600.0)
602 + " " + time.format("%B %d, %Y") + " " + time.timezone);