This class adds the setXXX methods to the Calendar class.
This class adds a noTime method the Date class, in order to get at Date object starting at 00:00
The TimeSpan class represents an amount of time.
class building TimeSpans given an amount (len) and a method specify the time unit
The TimeSpan object provides class represents an amount of time.
This operator transforms its arguments into a List
This operator transforms its arguments into a List
the list of arguments passed as varargs
a Box[date] from a string using the internet format.
the time taken to evaluate f in millis and the result
true if the method is public and has no parameters
Check that the method 'name' is callable for class 'clz'
Check that the method 'name' is callable for class 'clz'
the class supposed to own the method
name of the method to test
true if the method exists on the class and is callable
Is the clz an instance of (assignable from) any of the classes in the list
Is the clz an instance of (assignable from) any of the classes in the list
the class to test
the list of classes to match against
true if clz is assignable from any of the matching classes
Create a function (the 'invoker') which will trigger any public, parameterless method That function will throw the cause exception if the method can't be invoked
Create a function (the 'invoker') which will trigger any public, parameterless method That function will throw the cause exception if the method can't be invoked
instance whose method must be invoked
Empty if instance is null or Full(invoker)
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
Find a class given a list of possible names and corresponding packages, turning underscored names to CamelCase if necessary
Find a class given a list of possible names and corresponding packages, turning underscored names to CamelCase if necessary
a Box, either containing the found class or an Empty can.
Find a class given its name and a list of packages, turning underscored names to CamelCase if necessary.
Find a class given its name and a list of packages, turning underscored names to CamelCase if necessary.
a Box, either containing the found class or an Empty can.
Find a class given its name and a list of packages, turning underscored names to CamelCase if necessary.
Find a class given its name and a list of packages, turning underscored names to CamelCase if necessary.
a Box, either containing the found class or an Empty can.
General method to in find a class according to its name, a list of possible packages and a list of functions modifying the given name create a target name to look for (e.
General method to in find a class according to its name, a list of possible packages and a list of functions modifying the given name create a target name to look for (e.g: 'name' is hello_world and the target name may be 'HelloWorld').
a Box, either containing the found class or an Empty can.
General method to in find a class according to its name, a list of possible packages, a list of functions modifying the given name create a target name to look for (e.
General method to in find a class according to its name, a list of possible packages, a list of functions modifying the given name create a target name to look for (e.g: 'name' is hello_world and the target name may be 'HelloWorld').
a Box, either containing the found class or an Empty can.
Find a class given its type, a list of possible names and corresponding packages, turning underscored names to CamelCase if necessary
Find a class given its type, a list of possible names and corresponding packages, turning underscored names to CamelCase if necessary
a Box, either containing the found class or an Empty can.
Find a class given its type, its name and a list of packages, turning underscored names to CamelCase if necessary.
Find a class given its type, its name and a list of packages, turning underscored names to CamelCase if necessary.
a Box, either containing the found class or an Empty can.
General method to in find a class according to its type, its name, a list of possible packages and a list of functions modifying the given name create a target name to look for (e.
General method to in find a class according to its type, its name, a list of possible packages and a list of functions modifying the given name create a target name to look for (e.g: 'name' is hello_world and the target name may be 'HelloWorld').
a Box, either containing the found class or an Empty can.
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
Create a new instance of a class
Create a new instance of a class
a Full can with the instance or a Failure if the instance can't be created
transforms an int to a TimeSpan object.
transforms an int to a TimeSpan object. Usage: 3000 returns a TimeSpan of 3000L millis
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
Invoke a controller method (parameterless, public) on a class
Invoke a controller method (parameterless, public) on a class
the class owning the method
the result of the method invocation or throws the root exception causing an error
Invoke the given method for the given class, with some parameters and their types Tries the method name, then the method as a CamelCased name and the method as a camelCased name The class is not instanciated if the method is static, otherwise the passed instance is used
Invoke the given method for the given class, with some parameters and their types Tries the method name, then the method as a CamelCased name and the method as a camelCased name The class is not instanciated if the method is static, otherwise the passed instance is used
class whose method should be invoked
instance of the class who method should be invoked, if the method is not static
method to invoke
parameters to pass to the method
list of types of the parameters
a Box containing the value returned by the method
Invoke the given method for the given class, with some parameters.
Invoke the given method for the given class, with some parameters. Tries the method name, then the method as a CamelCased name and the method as a camelCased name The class is not instanciated if the method is static, otherwise the passed instance is used
class whose method should be invoked
instance of the class who method should be invoked, if the method is not static
method to invoke
parameters to pass to the method
a Box containing the value returned by the method
Invoke the given method for the given class, with no params.
Invoke the given method for the given class, with no params. The class is not instanciated if the method is static, otherwise the passed instance is used
class whose method should be invoked
instance of the class who method should be invoked, if the method is not static
method to invoke
a Box containing the value returned by the method
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 TimeSpan object.
transforms a long to a TimeSpan object. Usage: 3000L returns a TimeSpan of 3000L millis
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)
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
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
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
Wraps a "try" block around the function f.
Wraps a "try" block around the function f. Takes only one Class of exception to ignore
- a single exception classes to ignore. A thrown exception will be ignored if it is assignable from this class.
- the block of code to evaluate
Wraps a "try" block around the function f
Wraps a "try" block around the function f
- a list of exception classes to ignore. A thrown exception will be ignored if it is assignable from one of the exception classes in the list
- the block of code to evaluate
Wraps a "try" block around the function f and trigger a callback function if an exception is thrown
Wraps a "try" block around the function f and trigger a callback function if an exception is thrown
- an optional callback function that will use the thrown exception as a parameter
- the block of code to evaluate
Wraps a "try" block around the function f
Wraps a "try" block around the function f
- the block of code to evaluate
Wraps a "try" block around the function f.
Wraps a "try" block around the function f. If f throws an exception that is in the domain of the handler PF, the handler will be invoked on the exception. Otherwise the exception is wrapped into a Failure.
- A partial function that handles exceptions
- the block of code to evaluate
net.liftweb.common.Failure
Wraps a "try" block around the function f.
Wraps a "try" block around the function f. If f throws an exception with its class in the 'ignore' list or if 'ignore' is null or an empty list, ignore the exception and return None.
- a list of exception classes to ignore. A thrown exception will be ignored if it is assignable from one of the exception classes in the list
- an optional callback function that will use the thrown exception as a parameter
- the block of code to evaluate
The UTC TimeZone
The UTC TimeZone
the number of millis corresponding to 'in' weeks
the year corresponding to today (relative to UTC)
(Since version 2.3) Use StringHelpers.camelify
(Since version 2.3) Use StringHelpers.camelifyMethod
the current Day as a Date object
(Since version 2.6) use today instead
the current time as a Date object
(Since version 2.4) use now instead
(Since version 2.3) Use StringHelpers.snakify
The TimeHelpers object extends the TimeHelpers. It can be imported to access all of the trait functions.