This is the Time class version 1.0.
$time = Time()
Creates a new time given date components.
-
optional year: Year - Year
>= 1
. -
optional month: Month - Month symbol (e.g.
:January
) or 1-12. -
optional day: Day - Day of the month, 1-31.
-
optional hour: Hour - Hour, 0-23.
-
optional minute: Minute - Minute, 0-59.
-
optional second: Second - Second, 0-59.
-
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.
$time.year
Computed property. Year.
$time.month
Computed property. Month.
$time.monthName
Computed property. Name of the month.
$time.day
Computed property. Day of the month, 1-31.
$time.weekday
Computed property. Day of the week.
$time.weekdayName
Computed property. Name of the day of the week.
$time + ($ehs: Duration)
Add a duration to a timepoint.
$time - ($rhs: Duration)
Subtract a duration from a timepoint.
$time.copy()
Make a copy of this timepoint.
Time.now()
Returns the current time.
Time.today()
Returns a time at the moment the current day started.
Time.tomorrow()
Returns a time at the start of tomorrow.
Month type accepting a month symbol or integer 1-12. Yields a MonthSym.
In order to comply, the object must satisfy the following condition.
- transform: Determined at runtime; see code.
Symbol month names, accepted for the month time component.
In order to comply, the object must satisfy each of the following conditions.
- isa: Must be an instance of Sym.
- satisfies: Determined at runtime; see code.
Weekday type accepting a weekday symbol or integer 1-7, starting with Monday. Yields a WeekdaySym.
In order to comply, the object must satisfy the following condition.
- transform: Determined at runtime; see code.
Symbol weekday names.
In order to comply, the object must satisfy each of the following conditions.
- isa: Must be an instance of Sym.
- satisfies: Determined at runtime; see code.
Hour 0-23.
In order to comply, the object must satisfy each of the following conditions.
- isa: Must be an instance of Num.
- satisfies: Determined at runtime; see code.
Nanosecond >= 0.
In order to comply, the object must satisfy each of the following conditions.
- isa: Must be an instance of Int.
- satisfies: Determined at runtime; see code.
End of the Time class.
This file was generated automatically by the Ferret compiler from Time.frt.