eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'AbstractOperatingSystem::TimeInfo':

Home

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

Class: TimeInfo (private in AbstractOperatingSystem

This class is only visible from within AbstractOperatingSystem.

Inheritance:

   Object
   |
   +--AbstractOperatingSystem::TimeInfo

Package:
stx:libbasic
Category:
System-Support
Owner:
AbstractOperatingSystem

Description:


This is a helper class to hold the individual parts of the operating system's
timeInfo, i.e. hour,minute,second, etc. components plus tz info, dayInWeek and dayInYear.


Instance protocol:

accessing
o  at: index
backward compatibility

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  day

o  dayInWeek

o  dayInYear
answer of compute the day of the year - if necessary
(it is not set in windows)

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  dst

o  hours

o  milliseconds

o  milliseconds: something

o  minutes

o  month

o  seconds

o  utcOffset
return the difference between UTC (Greenwich Mean Time) and the local time in seconds.
If daylight saving time applies to ourself, take that into account.
Add utcOffset to convert from local time to UTC time.
Subtract utcOffset to convert from UTC time to local time.

If utcOffset is negative, the local timezone is east of Greenwich.
If utcOffset is positive, the local timezone is west of Greenwich.

usage example(s):

     (OperatingSystem timeInfoFromSeconds:Timestamp now utcSecondsSince1970 milliseconds:0 localTime:true)
	utcOffset

o  utcOffset: seconds
Modified (format): / 26-05-2019 / 12:08:50 / Claus Gittinger

o  year

o  year: yearArg month: monthArg day: dayArg hours: hoursArg minutes: minutesArg seconds: secondsArg milliseconds: millisecondsArg utcOffset: utcOffsetArg dst: dstArg dayInYear: dayInYearArg dayInWeek: dayInWeekArg
set instance variables (automatically generated)

o  year: yearArg month: monthArg day: dayArg hours: hoursArg minutes: minutesArg seconds: secondsArg utcOffset: utcOffsetArg dst: dstArg dayInYear: dayInYearArg dayInWeek: dayInWeekArg
set instance variables (automatically generated)

converting
o  asDate

o  asTime



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 28 Mar 2024 10:50:07 GMT