Skip to main content

Module formatter

Module formatter 

Source
Expand description

Formatting module: date-time output and relative-time descriptions.

Functions§

format_datetime
Format a RosettaDateTime using a strftime-style format string.
time_ago
Format the time difference between dt and now as a human-readable relative time string (e.g. “5 minutes ago”, “3天前”).