format method

String format()

Formats the Duration into a date string timestamp. The style will always be relative to represent as a duration on Discord.

Implementation

String format() => formatDate(DateTime.now().add(this), TimestampStyle.relativeTime);