docs: specify timezone for the formatting

This commit is contained in:
zanninso 2024-07-16 20:57:31 +01:00 committed by zanninso
parent 47bbfdf7d5
commit a611b6704d
1 changed files with 1 additions and 1 deletions

View File

@ -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.