|
Class: TimestampBuilderAbstract (private in Timestamp
This class is only visible from within
Timestamp.
Object
|
+--Timestamp::TimestampBuilderAbstract
|
+--Timestamp::TimestampISO8601Builder
- Package:
- stx:libbasic
- Category:
- Kernel-Chronology
- Owner:
- Timestamp
abstract timestamp reader support
error reporting
-
malformed: aString
-
support
-
addHoursAndMinutes: arrayWithHoursAndMinutes
-
Add the given number of hours and minutes to the current timestamp state. If the time
is to be subtracted, both numbers in the array must be negated. When the are not the same
sign, the behavior may be strange. It's intended only for time zone corrections, where
not more than 14 (in fact, 23) hours is added or subtracted (ie. date can be modified only
one day forward or backward).
-
dateAlreadyReadAs: date
-
support for readers which may have already preread the date
-
dateFromDayNumber: dayInYear
-
Set month and day from an absolute number of the day in the year. 1.1. is day number one.
-
dateFromWeek: weekInteger andWeekday: dayInteger
-
Compute the week and weekDay.
Find the first day (weekday) in the year, maybe even adjust the year.
Both week and day are 1-based, the first week in a year is the one
with thursday (or the one containing 4.1.).
-
isAllowedDay: anInteger
-
Answer whether the given day is allowed in the current month.
-
lastDayInMonth: anInteger
-
Answer the number of the last day of the given month in the current year.
-
leapYear: anInteger
-
-
timestampWithClass: timestampClass
-
Answer the timestamp as it has been parsed.
-
yearAlreadyReadAs: yearArg
-
support for readers which may have already preread the year
|