I would recommend sticking with the 24-hour format it's a lot easier to type because the AM/PM symbols have to be in upper case. I haven’t done anything clever with locales, but you can pick a different date format withĪnd we also support both 12-hour and 24-hour time formats.
If you’re still a little too inebriated to realise that While you can useįor tomorrow’s date, and as you would expect You know all aboutįor giving you the current time and date. Probably not all that useful, but some of this other stuff might be. That’s the time 6 hours from now, and for real nerdiness:ĭcalc :20 - :21 long If you just want the current time, then just enter I figured make this one a capital because it would see much less use. sorry, but the workflow has to distinguish between this and a small ‘m’ (for months). Will add 6 hours and 8 minutes to the current time. You can also use the today thing in other places too:Īnd we have another thing called time because the workflow can handle times too: Will return the date of the current day of week (Monday, as I'm writing this) for the seventh week of the current year. I've included defaults so that the workflow will fill in missing parameters: Should give you the Tuesday for week 6 in the year 2015, then add 1 day to that and give back the day of week. The expression will give you the date on Monday of that week, but you can also supply your own day adjustment if you want to.Īnd of course, you can do some basic calculations, if you can stand the syntax! Will give you the date for the fifth week inside for 2015. The wn function also works in reverse, finding dates from week numbers:
If you want to know what week number you’re in, then try this: Personally, I always use the long format because it’s more accurate.įor those who like to look ahead, you can add days to a date Maybe you don’t want it in days, but would rather it in weeks: Once you’ve completed the command then you’ll be given the result.įor the number of days until Christmas. Note that the workflow parses the command as you enter it, so you’ll see invalid command, invalid expression and invalid format errors as you type. Then it will tell you the number of days between those dates. It won’t tell you when you will the lottery, or how long you’ve got to hide your ‘arty videos’ before your wife gets home, but it will answer one or two very simple questions about dates. Right, so this is a date calculator – kind of.
I needed a bit of motivation to learn Python and Alfred workflows, so I thought I’d kill two horses with one bullet, so to speak.