Jump to content
Fira

[SOLVED] Time format for snippet as hh:mm (am/pm)

Recommended Posts

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!

 

Share this post


Link to post

@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

Share this post


Link to post
Posted (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 by Fira

Share this post


Link to post
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.

Share this post


Link to post

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!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...