Class TimeFrame


  • public class TimeFrame
    extends Object
    A time frame defines a time period between two time instants where these two instants depends on the current time.

    Some examples of time frame expressions are:

    • "now till 10second" => next 10 seconds
    • "begin[minute] till 10second" => first 10 seconds of current minute
    • "begin[minute] till now" => past seconds within current minute
    • "begin[minute] till 60seconds" => the current minute
    • "now till 1year" => 1 year since now
    • "now till end[year March] 1year" => this year + next (year starting on March)
    • "end[year March] till 1year" => next year
    • "begin[year March] -1year till now" => begin of last year till now
    • "end[year March] +2quarter till 1quarter" => 3rd quarter of next year
    • "begin[year March] -7day till begin[year March]" => Last week of last year