Skip to content
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.
/ alfred-datetime Public archive

Handle datetime formatting and math with alfred

License

Notifications You must be signed in to change notification settings

kdeal/alfred-datetime

Repository files navigation

alfred-datetime

Latest Travis CI build status

Handle datetime formatting and math with alfred

Install

Download the latest release and double click to add to alfred.

Usage

dt

  • Specify a formatted time to switch to another format
  • Use now, today, tomorrow, yesterday
  • +/- <amount> <unit> to add or subtract time
    • units: microseconds(ms), seconds(s), minutes(min), hours(hr), days(dy), weeks(wk), months(mn), years(yr)
  • next|prev <day of the week>
  • start|end <unit>
    • units: day, week, month, year, decade, century
  • to <timezone>
    • accepts local, utc, or a timezone
    • partial match timezone if it matches a single timezone (i.e. york matches America/New_York)
  • Use a combination of the commands above
    • dt now + 2 weeks 2 days
    • dt next monday + 2 days
    • dt 2017-09-10 22:10:44 start week

Todo

  • Handle time zone better
  • Improve docs
  • Allow users to define formats
  • Add some tests to make sure things work

About

Handle datetime formatting and math with alfred

Resources

License

Stars

Watchers

Forks

Packages

No packages published