Tempo

Tempo logo
Tempo logo

Introduction

Tempo is complete time and date solution that replaces Dart’s core DateTime with a rich set of date and time classes, advanced arithmetic features and full time zone support.

Features

  • Time zone-free date and time types for when you just need something simple:
    • Easier to think about and use
    • Fewer bugs and surprising behaviors
  • Zoned date time types for when you do need them
  • Convert to and from ISO 8601 strings
  • Formatting using the intl package
  • Lookup time zones by name, country and geographic coordinates
  • Calculate dates and times like a human would:
    • Add years and months to a datetime while keeping the day and time (no need to worry about leap years or time changes)
    • Count the number of actual months between two dates—not just the number of days divided by 30

Still not convinced? Read Why Tempo, or read my philosophy for this package.