eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Timestamp::TimestampBuilderAbstract':

Home

everywhere
www.exept.de
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

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 12 (in fact, 23) hours is added or subtracted (ie. date can be modified only
one day forward or backward).

o  dateFromDayNumber: anInteger
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  isLeapYear: anInteger

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

o  timestamp
Answer the timestamp as it has been parsed.



ST/X 6.1.1; WebServer 1.620 at exept:8081; Tue, 22 May 2012 22:42:34 GMT