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:
Magnitude-Time
Owner:
Timestamp
Author:
cg

Description:


documentation to be added.


[instance variables:]

[class variables:]


Related information:



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  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 month and day. 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


Examples:


more examples to be added:
  ... add code fragment for 
  ... executable example here ...


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Wed, 10 Aug 2022 11:25:05 GMT