![]() My implementation uses variables utcMicroseconds and localOffsetSeconds. I represent a point in UTC time as defined by ISO 8601. ![]() !DateAndTime commentStamp: 'dtl 10:32' prior: 0! InstanceVariableNames: 'utcMicroseconds localOffsetSeconds'ĬlassVariableNames: 'AutomaticTimezone ClockProvider InitializeFromPrimitive LocalTimeZone Posi圎pochJulianDays' Method: Date class>starting: (in category 'squeak protocol'). ^ self julianDayNumber: da圜ount + SqueakEpoch! + ^ self julianDayNumber: da圜ount + Time squeakEpoch! Method: Date class>fromDays: (in category 'smalltalk-80'). All Timespans, including Dates, may specify a particular timezone offset for this purpose.! However, like the other Timespan subInstances, there are rare cases where it may be desirable to use instances of Date to represent a particular 1-day span of time at a particular locality on the globe. ![]() As with all Chronology Timespan sub-instances, Dates can be instantiated as position values which compare equally to any other instance of the same Date, irregardless of the timezone in which either is created. Instances of Date are Timespans with duration of 1 day. !Date commentStamp: 'cmm 21:36' prior: 0! July August September October November December). MonthNames := #( January February March April May June DayNames := #(Sunday Monday Tuesday Wednesday Thursday Friday Saturday). Method: Chronolog圜onstants class>initialize (in category 'class initialization'). Chronolog圜onstants is a SharedPool for the constants used by the Kernel-Chronology classes.! !Chronolog圜onstants commentStamp: 'brp 14:34' prior: 0! classVariableNames: 'DayNames DaysInMonth MicrosecondsInDay MonthNames NanosInMillisecond NanosInSecond OneDay SecondsInDay SecondsInHour SecondsInMinute SqueakEpoch Zero' SharedPool subclass: #Chronolog圜onstants The shared pool is not required, it is simpler to use methods in the responsible classes. ![]() Retain jmv author initials where possible. UUID: a33e5fab-940e-41ed-b05c-76f8ff54f5eeĪdopt simplifications from Cuis. A new version of Chronology-Core was added to project The Inbox: ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |