Level 70 Level 72
Level 71

[Quiz] Date & Time


33 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
java.util.Date
Encapsulates a point in time
java.util.DateFormat
Generates and parses date strings
java.util.GregorianCalendar
Encapsulates a Date objects to provide calendar fields (ex month, day, year)
java.util.TimeZone
Represents time zone and daylight savings information
Calendar.YEAR
Identifier for Date year field
Calendar.WEEK_OF_MONTH
Identifier for Date week of month field
Calendar.AM_PM
Identifier for Date am/pm field
Calendar.MAY
Constant representing the month of May
Calendar.AM
Costant representing Am time
Calendar.FRIDAY
Constant representing Friday day of week
Calendar.set()
Calendar instance method that takes a field identifier and a value and updates the corresponding instance field
Calendar.add()
Calendar instance method that takes a field identifier and a value and shifts the internal state forward by the value specified, recalcuting locale specifics as needed
Calendar.getTime()
Calendar instance method that returns the inner Date object
Calendar.setTime()
Calendar instance method that takes a Date object to replace its internal state
Calendar.roll()
Calendar instance method that arbitarily changes one Date field without recalculating the others
Calendar.getInstance()
Static method that returns an instance of an appropriate Calendar subclass
Calendar.setTimeZone()
Calendar instance method that replaces the internl timezone field
TimeZone.getInstance()
Static method that returns an instance of TimeZone corresponding to the string argument
DateFormat.getInstance()
Static method that returns a DateFormat object
DateFormat.format()
DateFormat instance method that takes a Date object and returns a string
DateFormat.parse()
DateFormat instance method that takes a string and returns a Date object or throws an exception
System.out.printf(Locale.ITALIAN, "The date is %t", new Date());
One line code sample that localizes a date into Italian and prints "The date is " then the current hour:minute:second
Instant
An ... is a point on the time line
Duration
A ... is the difference between two instants.
TemporalAdjuster
... methods handle common calendar computations, such as finding the first Tuesday of a month.
LocalDateTime
... has no time zone information.
ZonedDateTime
... is a point in time in a given time zone.
Period
Use a ..., not a Duration, when advancing zoned time, in order to account for daylight savings time changes.
zoned
Use a Period, not a Duration, when advancing ... time, in order to account for daylight savings time changes.
daylight savings
Use a Period, not a Duration, when advancing zoned time, in order to account for ... time changes.
DateTimeFormatter
Use ... to format and parse dates and times.
Cite alguns campos-chave de Calendar
DATE/DAY_OF_MONTH -> captura/configura o dia do mês
Cite alguns métodos-chave de Calendar
add -> aumenta ou diminui a hora do campo no calendário