This class adds the setXXX methods to the Calendar class.
This class adds the setXXX methods to the Calendar class. Each setter returns the updated Calendar
This class adds a noTime method the Date class, in order to get at Date object starting at 00:00
The TimeSpan
class represents a duration of time in milliseconds.
The TimeSpan
class represents a duration of time in milliseconds. In this
way, it is similar to the scala.concurrent.Duration
class. It is
mostly used in Lift APIs in similar positions as the Scala Duration
class (for example, in event scheduling).
Unlike in the Lift 2.x series, building a TimeSpan
with a Long
will not
have different behavior depending on the value passed. Any passed Long
will be used as a duration.
Prior to Lift 3.0, TimeSpan
was an amalgam of duration and joda
DateTime
, and allowed conversions between the two. As a result,
operational semantics were poorly defined and it was easy to call a method
that seemed like it should have simple duration semantics but run into
DateTime
semantics that made things more complicated instead.
Lift 3.0 mostly maintains API compatibility with the Lift 2.x series, but
introduces a series of deprecations to indicate places where dangerous
and potentially unclear behavior may occur. Lift 3.1 will maintain API
compatibility with all non-deprecated parts of the TimeSpan
API, but will
remove the deprecated aspects.
For deprecated years and month builders it handle an operations on duration field values. Then it could be used only in to-period implicit conversion.
class building TimeSpans given an amount (len) and a method specify the time unit
The TimeSpan object provides class represents an amount of time.
The TimeSpan object provides class represents an amount of time. It can be translated to a date with the date method. In that case, the number of millis seconds will be used to create a Date object starting from the Epoch time (see the documentation for java.util.Date)
a Box[date] from a string using the internet format.
the time taken to evaluate f in millis and the result
the current year
a standard format for the date yyyy/MM/dd
the day of month corresponding to the input date (1 based)
the number of millis corresponding to 'in' days
the number of days since epoch
today's date formatted as yyyy/MM/dd
now's time formatted as HH:mm zzz
the formatted time for a given Date
a standard format HH:mm:ss
the number of millis corresponding to 'in' hours
transforms an int to a TimeSpanBuilder object.
transforms an int to a TimeSpanBuilder object. Usage: 3.seconds returns a TimeSpan of 3000L millis
a formatter for internet dates (RFC822/1123) including: the day of week, the month, day of month, time and time zone
Call f and log the string returned together with the time taken in millis.
Call f and log the string returned together with the time taken in millis.
the second result from f
Log a message with the time taken in millis to do something and return the result
Log a message with the time taken in millis to do something and return the result
the result
transforms a long to a TimeSpanBuilder object.
transforms a long to a TimeSpanBuilder object. Usage: 3L.seconds returns a TimeSpan of 3000L millis
the current number of millis: System.currentTimeMillis
the number of days since epoch converted from millis
the number of millis corresponding to 'in' minutes
the month corresponding to today (0 based, relative to UTC)
the current System.nanoTime()
the date object for now
the current time as an internet date
a date from a string using the internet format. Return the Epoch date if the parse is unsuccesful
the number of millis corresponding to 'in' seconds
alias for new Date(millis)
a format for the time which includes the TimeZone: HH:mm zzz
implicit def used to add the setXXX methods to the Calendar class
a Full(date) or a failure if the input couldn't be translated to date (or Empty if the input is null)
implicit def used to add the noTime method to the Date class
a date formatted with the internet format (from a number of millis)
a date formatted with the internet format
the Calendar object for today (the TimeZone is the local TimeZone). Its time is 00:00:00.000
The UTC TimeZone
the number of millis corresponding to 'in' weeks
the year corresponding to today (relative to UTC)
transforms an int to a TimeSpan object.
transforms an int to a TimeSpan object. Usage: 3000 returns a TimeSpan of 3000L millis
(Since version 3.0.0) Int to TimeSpan conversion will be removed for possibility of ambiguous behaviours, use TimeSpan(in) instead if you are using in.millis
transforms a long to a TimeSpan object.
transforms a long to a TimeSpan object. Usage: 3000L returns a TimeSpan of 3000L millis
(Since version 3.0.0) Long to TimeSpan conversion will be removed for possibility of ambiguous behaviours, use TimeSpan(in) instead if you are using in.millis
The TimeHelpers trait provide functions to create TimeSpans (an object representing duration in milliseconds), to manage date formats or general utility functions (get the date for today, get year/month/day number,...)