Closed peter279k closed 4 years ago
Is your feature request related to a problem? Please describe. I get started to think about the date format inside Time class.
Time
It looks like the date format has the fixed format and developer doesn't have any option to make the date be formatted.
Such as Time::timestampToGmt result will be the d/m/Y H:i:s format.
Time::timestampToGmt
d/m/Y H:i:s
Describe the solution you'd like Perhaps we consider have the option to define the date format string.
Possible approach I suggest the following approach and we should follow this rule.
setDateFormat
getDateFormat
dateFormat
validateDateFormat
Is your feature request related to a problem? Please describe. I get started to think about the date format inside
Time
class.It looks like the date format has the fixed format and developer doesn't have any option to make the date be formatted.
Such as
Time::timestampToGmt
result will be thed/m/Y H:i:s
format.Describe the solution you'd like Perhaps we consider have the option to define the date format string.
Possible approach I suggest the following approach and we should follow this rule.
setDateFormat
andgetDateFormat
methods and define private/protecteddateFormat
variable.validateDateFormat
method when settingsetDateFormat
.