alphazframework / framework

Core files of AlphaZ Framework
https://alphazframework.github.io/
MIT License
16 stars 17 forks source link

Be flexible for the format inside Time class #234

Closed peter279k closed 4 years ago

peter279k commented 5 years ago

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 the d/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.