change "this" formatting

This commit is contained in:
krawieck 2021-02-12 23:44:15 +01:00
parent 807a17f359
commit 39b12fe3bc
1 changed files with 2 additions and 2 deletions

View File

@ -1,12 +1,12 @@
import 'package:timeago/timeago.dart' as timeago;
extension FancyTime on DateTime {
/// returns [this] time as a relative, human-readable string. In short format
/// returns `this` time as a relative, human-readable string. In short format
String get fancyShort => timeago.format(this,
locale: 'en_short',
clock: DateTime.now().subtract(DateTime.now().timeZoneOffset));
/// returns [this] time as a relative, human-readable string
/// returns `this` time as a relative, human-readable string
String get fancy => timeago.format(this,
clock: DateTime.now().subtract(DateTime.now().timeZoneOffset));
}