Fira Posted April 7, 2019 Share Posted April 7, 2019 Hey fabulous Alfred users, Could you please help me with what's the Snippet for the Current Time for the format "hh:mm (am/pm)". The current snippet I'm using is {time}, which gives time in the format "11:22:01 AM". I would like to drop the seconds from this format and just have the Hours and Minutes. Thanks for your help! Link to comment
Andrew Posted April 8, 2019 Share Posted April 8, 2019 @Fira Here are a few which should help out: 24h formatting without am/pm: {date:HH:mm} 12h formatting with am/pm: {date:h:mm a} Let me know how you get on Cheers, Andrew Link to comment
Fira Posted April 9, 2019 Author Share Posted April 9, 2019 (edited) Yay! That works! Thanks, Andrew : ) Is there someplace that I could have looked up for that (or figured it out) without asking for it in the forum? Cheerio, Fira Edited April 9, 2019 by Fira Link to comment
vitor Posted April 9, 2019 Share Posted April 9, 2019 8 hours ago, Fira said: Is there someplace that I could have looked up for that (or figured it out) without asking for it in the forum? Yes. Alfred has pretty good documentation. Link to comment
Fira Posted April 10, 2019 Author Share Posted April 10, 2019 Thanks Victor. However in the link that you shared, I couldn't find the format : On 4/8/2019 at 3:30 PM, Andrew said: {date:h:mm a} or have I missed something? Or was there a way to figure this format out given the documentation there already? If not, that's fine too, I just wanted to learn what I could have tried differently before posting here. I really Appreciate the help! Cheerio! Link to comment
Andrew Posted April 10, 2019 Share Posted April 10, 2019 @Fira It's part of "Advanced Date Formatting using Unicode formats" which links to this page: http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns The formatting itself is a unicode standard, there are plenty of examples on that page. I'll add a note to add more examples on our own help page Cheers, Andrew Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now