Datetime object
The Datetime object handles dates and times
| Property | Description | Access | Type |
|---|---|---|---|
| Datetime.date | Get the date as a string | readonly | string |
| Datetime.day | Get/set the day of the month | readwrite | number |
| Datetime.dayname | Get the day name as a string | readonly | string |
| Datetime.hour | Get/set the hour | readwrite | number |
| Datetime.milliseconds | Get/set milliseconds of a date/time | readwrite | number |
| Datetime.minute | Get/set minutes | readwrite | number |
| Datetime.month | Get/set the month | readwrite | number |
| Datetime.monthname | Get the month name as a string | readonly | string |
| Datetime.second | Get/set the number of second | readwrite | number |
| Datetime.time | Get the time as a string | readonly | string |
| Datetime.weekday | Get/set the weekday | readwrite | number |
| Datetime.year | Get/set the year | readwrite | number |
| Methods | Description | Return value |
|---|---|---|
| Datetime:constructor() | date/time representation | |
| Datetime:format() | format date/time to string | string |
| Datetime:interval() | Calculate a date/time interval | number |