@bikeindex/time-localizer
v0.1.1
Published
Localizes time elements to the user's timezone using Luxon
Downloads
217
Readme
Binxtils
Bike Index utility modules. Install it by adding the following line to your Gemfile
gem "binxtils"Modules
- Binxtils::InputNormalizer - Sanitize and normalize user input strings
- Binxtils::TimeParser - Parse fuzzy time/date strings into
Timeobjects - Binxtils::TimeZoneParser - Parse and resolve time zone strings
Usage
All modules use Functionable and are called as class methods:
Binxtils::TimeParser.parse("next thursday")
Binxtils::InputNormalizer.string(" Some Input ")
Binxtils::TimeZoneParser.parse("Eastern Time")