Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2025-01-17 | 866 Bytes | |
v3.5.3 source code.tar.gz | 2025-01-17 | 301.7 kB | |
v3.5.3 source code.zip | 2025-01-17 | 456.1 kB | |
Totals: 3 Items | 758.7 kB | 2 |
What's Changed
- Add support for specifying separator between units when using TimeFormatter by @hakksor in https://github.com/axuno/SmartFormat/pull/459
- Bump version to v3.5.3 in https://github.com/axuno/SmartFormat/pull/463
Example:
TimeFormatter
allows for nested formats:
:::cs
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
- @hakksor made their first contribution in https://github.com/axuno/SmartFormat/pull/459
Full Changelog: https://github.com/axuno/SmartFormat/compare/v3.5.2...v3.5.3