malcommac / SwiftDate

🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.
MIT License
7.61k stars 767 forks source link

How to convert `1s`, `10m`, `2m±1s` to TimeInterval or Date by SwiftDate? #818

Open PublicWorld opened 1 year ago

PublicWorld commented 1 year ago

I have a textField that when input these 1s, 10m, 2m±1s time values, I want to convert to TimeInterval or Date, but didn't found related usage guide, could you help check this? Thanks.