Time
This is the Time class version 1.0.
Initializer
$time = Time()
Creates a new time given date components.
Arguments

optional year: Year  Year
>= 1
. 
optional month: Month  Month symbol (e.g.
:January
) or 112. 
optional day: Day  Day of the month, 131.

optional hour: Hour  Hour, 023.

optional minute: Minute  Minute, 059.

optional second: Second  Second, 059.

optional nanosecond: Nanosecond  Nanoseconds >= 0.

optional timeZone: Str  Time zone identifier (e.g.
"America/Chicago"
) or offset string (e.g."+0630"
) or"local"
for the local timezone. If omitted, no timezone will be associated with this timepoint.
Methods
year
$time.year
Computed property. Year.
month
$time.month
Computed property. Month.
monthName
$time.monthName
Computed property. Name of the month.
day
$time.day
Computed property. Day of the month, 131.
weekday
$time.weekday
Computed property. Day of the week.
weekdayName
$time.weekdayName
Computed property. Name of the day of the week.
Addition operator (+)
$time + ($ehs: Duration)
Add a duration to a timepoint.
Subtraction operator ()
$time  ($rhs: Duration)
Subtract a duration from a timepoint.
copy
$time.copy()
Make a copy of this timepoint.
Class functions
now
Time.now()
Returns the current time.
today
Time.today()
Returns a time at the moment the current day started.
tomorrow
Time.tomorrow()
Returns a time at the start of tomorrow.
Type interfaces
Month
Month type accepting a month symbol or integer 112. Yields a MonthSym.
Restraints and transforms
In order to comply, the object must satisfy the following condition.
MonthSym
Symbol month names, accepted for the month time component.
Restraints and transforms
In order to comply, the object must satisfy each of the following conditions.
Weekday
Weekday type accepting a weekday symbol or integer 17, starting with Monday. Yields a WeekdaySym.
Restraints and transforms
In order to comply, the object must satisfy the following condition.
WeekdaySym
Symbol weekday names.
Restraints and transforms
In order to comply, the object must satisfy each of the following conditions.
Hour
Hour 023.
Restraints and transforms
In order to comply, the object must satisfy each of the following conditions.
Nanosecond
Nanosecond >= 0.
Restraints and transforms
In order to comply, the object must satisfy each of the following conditions.
End of the Time class.
This file was generated automatically by the Ferret compiler from Time.frt.