Lightweight & zero dependency
pure go implementation, doesn't depend on any third-party package, 100% unit test coverage
pure go implementation, doesn't depend on any third-party package, 100% unit test coverage
provide concise and elegant chain calls with high readability, ensuring code scalability and reusability
support time resolution, time addition and subtraction, time setting, time boundary, time judgment, etc
retrieve each parts of time (such as year, month, day, hour, minute, second, etc.) and timestamp
output time strings of different precision and formats as needed, including ISO8601, RFC series, and custom formats
support setting test time, freezes current time, facilitates unit testing
support over 30 localized translation languages and allow customization of translation resources
provide error checking mechanism for handling errors such as time resolution