Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Pante authored May 19, 2023
1 parent 93506ef commit a65f377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sugar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ It consolidates several micro-packages that provide bits and pieces of date-time

## Why Sugar's date-time API over other packages?

* Sugar is able to detect the platform's timezone, `ZonedDateTime.now()`. Other packages such as `timezone` or even Dart's standard library don't.
* Sugar is able to detect the platform's timezone, `ZonedDateTime.now()`. Other packages such as `timezone` and even Dart's standard library don't.
[`DateTime.timeZoneName`](https://api.dart.dev/stable/dart-core/DateTime/timeZoneName.html) returns an ambiguous abbreviation that can refer to multiple timezones.
We provide a TZ database timezone identifier such as `Asia/Singapore`.
Sugar provide a TZ database timezone identifier such as `Asia/Singapore`.
See [List of timezone abbreviations](https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations).

* Sugar is less hassle to set up. You don't need to fiddle with assets or asynchronously initialize the package.
Expand Down

0 comments on commit a65f377

Please sign in to comment.