NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #4163 most downloaded on Packagist
A date library to help you work with dates in different languages
Latest stable
v4.0.0
Last release 7 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 12 months
Most releases are documented
notes for 44 of 58 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
61 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
- Use Carbon translations - Laravel 7 support
Switch to Carbon 2 translations
Carbon 2 support
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fixed loop issue for fallback language
Allow Symfony 4
Use original diffForHumans
Add month and day abbreviations for: Estonian, Finnish, Latvian and Russian
- Add Tamil language - Updated Hungarian - Updated Japanese
Update Arabic language
Allow construct from Carbon objects
- Added Serbian Latin - Added Kazakh - Updated Romanian
Nothing published for this version
Support locale switching for Laravel
Nothing published for this version
- Added Galician - Added Bangla
Add $short parameter to diffForHumans; this parameter is currently ignored
$short parameter to diffForHumans; this parameter is currently ignoredImproved localized time and date parsing
- Added Welsh - Improved Hungarian - Improved Latvian - Improved Ukrainian
Added locale fallback support using setFallbackLocale
setFallbackLocale- Added Turkmen - Added Albanian - Added Macedonian - Added Latvian - Improved Polish - Improved Hungarian
Fixed constructor with timestamps
Nothing published for this version
- Added Serbo-croatian language - Updated Serbian language - Updated Greek language
Nothing published for this version
Nothing published for this version
Added translation for "0 seconds ago" in Czech and Slovak
Fix 'August' typo in Arabic language
Fixes compatibility with Symfony locale notation with dashes/underscores
Nothing published for this version
Nothing published for this version
Nothing published for this version
Replaced deprecated Symfony Translator method
- Improved Norwegian - Improved Russian
- Added Malay language - Added Persian language - Renamed pt_BR to pt-BR
Removed the custom Translator class and interact directly with the Symfony Translator instead
Translator class and interact directly with the Symfony Translator insteadparse and createFromFormat methods. These will translate locale based input to english before handing it over to DateTimeFixes compatibility with the new Carbon version
Translator class and interact directly with the Symfony Translator insteadThe Laravel translator is no longer used, even if it is available. This was done to encourage the usage of this library outside of Laravel as well.
parse and createFromFormat methods. These will translate locale based input to english before handing it over to DateTime.Nothing published for this version
Lock Carbon version to prevent compatibility issues for v2
Fixed issue for usage outside of Laravel
Nothing published for this version
- Improved Vietnamese - Improved Japanese - Improved Chinese
Added automatic unit tests for all language files
- Added Slovenian language - Improved Chinese - Improved Czech - Improved Finnish
- Adding Czech language - Adding Slovak Language
Adding $absolute to the diffForHumans method like Carbon
- Fixed Laravel 5 version check
Nothing published for this version
Nothing published for this version
Fix rounding error in diffForHumans
- Hide empty timespan values - Added Vietnamese - Added Traditional Chinese
- Added Indonesian. - Added Japanese. - Added Bulgarian. - Added Brazilian Portuguese. - Improved Dutch. - Improved Turkish. - Improved Swedish.
Removed capitalization in a bunch of language files, following http://meta.wikimedia.org/wiki/Capitalization_of_Wiktionary_pages#Capitalization_of_mon
Allow suffix specific translations.
- Added Hungarian - Added Esperanto - Added Serbian - Improved German
Better compatibility with the Laravel translator
Updated fallback translator to support multiple plural forms
Nothing published for this version
- Added Spanish - Added Finnish - Added Basque - Added Italian - Added Polish - Added Portuguese - German translation completed
New version which now extends Carbon.
format are now translated.One column per quarter.