# DateAndTime

DateAndTime inherits from Object and defines instance variables second, minute, hour, day, month, year, weekDay. It has no subclasses.

DateAndTime represents a point in time with 1-second resolution. Get the current DateAndTime with the class-side message #now.

## Methods defined in DateAndTime:

### Methods for accessing:

- date
- day
- hour
- minute
- month
- second
- time
- weekDay
- year

### Methods for printing:

- printOn: stream

### Methods for private:

- copyIntoPad: pad
- destructureFromPad: pad

### Methods for time functions:

- addDays: days
- addSeconds: seconds
- adjustBySeconds: seconds
  Add 'seconds' (positive or negative) to the receiver, destructively.
- asSeconds

Pocket Smalltalk Documentation