\Greg\Support\DateTime
is working with dates and times.
Extends: \DateTime
.
Includes \DateTime
methods.
- yearInterval - Get a string interval to current year;
- transform - Transform a time;
- transformLocale - Transform a time, using locale;
- timestamp - Get timestamp of a time;
- diffTime - Compare two times;
- dateTimeString - Get date-time string of a time;
- iso8601 - Get ISO8601 of a time;
- dateString - Get date string of a time;
- timeString - Get time string of a time;
- year - Get year of a time;
- month - Get month of a time;
- day - Get day of a time;
- untilNow - Get time until now.
Methods description is under construction.