You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[feature-req] Add formatDateTime() Helper to Return ISO 8601 String to DateTimeLib.sol #1492
Add a helper function like the following to the DateTimeLib library to convert a UNIX timestamp into a human-readable ISO 8601-style string.
I'm a bit conflicted raising this, as it's very client specific to format or use the return date variables however they want, and this lib produces the data to do so. But on the other hand, for these 'one liner string return helpers' I would think this would be a common enough usecase for helper code to not be in client specific contracts and be inside the lib itself.
Activity
0xClandestine commentedon Oct 3, 2025
Have been considering suggesting this as well, have an impl in a private repo.