case classDateTimeUTC(year: Int, month: Int, day: Int, hour: Int, minute: Int, second: Int, millis: Int = 0) extends Product with Serializable
A simple structure representing a calendar date in UTC.
This class is deliberately extremely simple and delegates out to joda-time
for its actual functionality; it exists solely to abstract away our choice of
date and time library. (In JDK 8, it would probably make sense to use the new
standard library date and time classes.)
If you need to deal with multiple time zones or different calendars,
you're probably best served by using something more sophisticated (although the
from method in the companion object to convert from a org.joda.time.DateTime
will convert to UTC first).
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
A simple structure representing a calendar date in UTC.
This class is deliberately extremely simple and delegates out to
joda-time
for its actual functionality; it exists solely to abstract away our choice of date and time library. (In JDK 8, it would probably make sense to use the new standard library date and time classes.)If you need to deal with multiple time zones or different calendars, you're probably best served by using something more sophisticated (although the
from
method in the companion object to convert from a org.joda.time.DateTime will convert to UTC first).