Examples
Small apps you can run and edit right here. Each one shows one thing the library does, with a few things to try in the preview.
Zones
Lengths of time
Countdown to a launch
The time left until Friday at 5 PM, as a duration you can print three ways.
until()does the subtraction and keeps the units.Try Watch the seconds. Each tick asks
now().until(launch)again and prints what comes back.Typed durations
A field that reads lengths of time the way people type them.
duration()takes1h 30m,90 minutesor2 weeks and 3 days, and says what’s wrong with anything else.Try Type
90 minutes. It reads as 1 hour, 30 minutes, and 1.5 hours in total.