Skip to content

v3.5.3

Latest
Compare
Choose a tag to compare
@axunonb axunonb released this 17 Jan 08:29
423466b

What's Changed

  • Add support for specifying separator between units when using TimeFormatter by @hakksor in #459
  • Bump version to v3.5.3 in #463

Example:

TimeFormatter allows for nested formats:

var ci = CultureInfo.GetCultureInfo("en");

// Using standard:
_ = Smart.Format(ci, "{1:time:", new TimeSpan(1,1,1,1,1));
// Output: "1 day 1 hour 1 minute 1 second"

// Using ListFormatter:
_ = Smart.Format(ci, "{1:time: {:list:|, | and }}", new TimeSpan(1,1,1,1,1));
// Output: "1 day, 1 hour, 1 minute and 1 second"

New Contributors

Full Changelog: v3.5.2...v3.5.3