Next: , Previous: , Up: DateTime   [Index]


1.60.2 DateTime class: instance creation

now

Answer an instance of the receiver referring to the current date and time.

readFrom: aStream

Parse an instance of the receiver from aStream

today

Answer an instance of the receiver referring to midnight of today in local time.

year: y day: d hour: h minute: min second: s

Answer a DateTime denoting the d-th day of the given year, and setting the time part to the given hour, minute, and second

year: y day: d hour: h minute: min second: s offset: ofs

Answer a DateTime denoting the d-th day of the given year. Set the offset field to ofs (a Duration), and the time part to the given hour, minute, and second

year: y month: m day: d hour: h minute: min second: s

Answer a DateTime denoting the d-th day of the given (as a number) month and year, setting the time part to the given hour, minute, and second

year: y month: m day: d hour: h minute: min second: s offset: ofs

Answer a DateTime denoting the d-th day of the given (as a number) month and year. Set the offset field to ofs (a Duration), and the the time part to the given hour, minute, and second