eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Timestamp::TimestampBuilderAbstract':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: TimestampBuilderAbstract (private in Timestamp

This class is only visible from within Timestamp.

Inheritance:

   Object
   |
   +--Timestamp::TimestampBuilderAbstract
      |
      +--Timestamp::TimestampISO8601Builder

Package:
stx:libbasic
Category:
Kernel-Chronology
Owner:
Timestamp

Description:


abstract timestamp reader support


Instance protocol:

error reporting
o  malformed: aString

support
o  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).

o  dateAlreadyReadAs: date
support for readers which may have already preread the date

o  dateFromDayNumber: dayInYear
Set month and day from an absolute number of the day in the year. 1.1. is day number one.

o  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.).

o  isAllowedDay: anInteger
Answer whether the given day is allowed in the current month.

o  lastDayInMonth: anInteger
Answer the number of the last day of the given month in the current year.

o  leapYear: anInteger

o  timestampWithClass: timestampClass
Answer the timestamp as it has been parsed.

o  yearAlreadyReadAs: yearArg
support for readers which may have already preread the year



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:18:57 GMT