namespace
SAPO.Utility.Date
Class to provide the same features that php date does
Function Summary
Functions that works exactly as php date() function - works like PHP 5.2.2 PHP Date function
Function Details
function get
Functions that works exactly as php date() function - works like PHP 5.2.2 PHP Date function
Parameters:
format
- as the string in which the date it will be formatted - mandatory
[_date]
- the date to format. If undefined it will do it on now() date. Can receive unix timestamp or a date object
Returns:
the date formatted
function set
functions that works like php date() function but return a date based on the formatted string
Parameters:
format
- as the string in which the date it will be formatted - mandatory
str_date
- the date formatted.
Returns:
the date