SRP_DateTime provides several services to easily manipulate BASIC+ datetimes. SRP_DateTime provides the following services:
| Service | Description | Version Added |
|---|---|---|
| AddDays | Adds days to a datetime. | 2.1.5 |
| AddHours | Adds hours to a datetime. | 2.1.5 |
| AddMinutes | Adds minutes to a datetime. | 2.1.5 |
| AddMonths | Adds months to a datetime. | 2.1.5 |
| AddSeconds | Adds seconds to a datetime. | 2.1.5 |
| AddYears | Adds years to a datetime. | 2.1.5 |
| Combine | Combine's a date and a time into a datetime. | |
| Date | A datetime's date. | |
| Day | A datetime's day. | |
| DayOfWeek | A datetimes's day of the week. | |
| DayOfYear | A datetimes's day of the year. | |
| DaySpan | The number of days between datetimes. | 2.1.5 |
| Decode | Decodes a datetime into a dynamic array of information about that datetime. | |
| Encode | Creates a datetime from a given year, month, day, hour, minute, and second. | |
| Format | Formats a datetime using a given locale. | |
| FromUTC | Converts a datetime from UTC to the local time zone. | |
| Hour | A datetime's hour. | |
| HourSpan | The number of hours between datetimes. | 2.1.5 |
| IsAm | Determines if a datetime is in the AM. | |
| IConv | Supports using SRP_DateTime in an IConv. | |
| Minute | A datetime's minute. | |
| MinuteSpan | The number of minutes between datetimes. | 2.1.5 |
| Month | A date's month. | |
| MonthSpan | The number of months between datetimes. | 2.1.5 |
| Now | The current datetime in local or UTC time zones. | |
| OConv | Supports using SRP_DateTime in an OConv. | |
| Parse | Parses a string into a datetime. | |
| Second | A time's second. | |
| SecondSpan | The number of seconds between datetimes. | 2.1.5 |
| Span | The number of day between datetimes. | 2.1.5 |
| Split | Splits a datetime into a date and time. | 2.1.5 |
| Time | A datetime's time. | |
| ToUTC | Converts a datetime from the local time zone to UTC. | |
| Validate | Determines if the given date is a real date. | |
| Year | A datetime's year. | |
| YearSpan | The number of years between datetimes. | 2.1.5 |