mirror of https://github.com/01-edu/public.git
docs: specify timezone for the formatting
This commit is contained in:
parent
47bbfdf7d5
commit
a611b6704d
|
@ -6,7 +6,7 @@ Write a class `DateFormatter` that has three private attributes:
|
|||
|
||||
- `date`: the date to be formatted (as a UNIX time in seconds).
|
||||
- `format`: the format to convert the date to.
|
||||
- `formattedDate`: contains the date converted into the given format.
|
||||
- `formattedDate`: contains the date converted into the given format(in the "UTC" Timezone).
|
||||
|
||||
Create getters for all the attributes and setters for `date` and `format`. The conversion should happen when you set the `format` or the `date`. If the `format` is not correct, the conversion shouldn't happen. Additionally, create methods to output the date in the specified `format`, and constructors with only the `date`, with `date` and `format`, and a default constructor.
|
||||
|
||||
|
|
Loading…
Reference in New Issue