43

This is not a Geeklet, but I certainly use it often as a guide to the date.

When you want a geeklet to tell you the time, you set the code as

date +"%I:%M %p"

gives "07:58 pm".

When you want to display the day, month, year, et cetera, this is the way you set up the code:

date +"%A, %d %B %Y"

gives "Tuesday, 23 August 2011".

You can include as many dates as you want, and you can put words, spaces, and symbols in between them, like I did in my first example. Notice the colon in between the %I and the %M.

NOTE: Case is important! will tell you that the time is 09:00, or whatever time it is for you. The "I" is an UPPERCASE i, not a lowercase L. When you substitute a lowercase L for the I, the time will read 9:00.

Use this website to find each letter code.

Comments

Log in to comment or register here.