Terminal Tips: What Day of the Year Is It?
This is a rather silly tip to impress (or freak out) your friends by making them think you are mildly autistic /
weird. Simply launch the Terminal (found in /Applications/Utilities/) and type cal -j and hit
return. This will display a calendar of the current month listing the julian dates (days numbered in sequence from
January 1st). Today, for example, is the 85th day of the year. Now plotting which day in the julian calendar
corresponds to which regular date can be difficult (if you didn’t know that today was the last Saturday in March, for
example), so simply type cal and return in the Terminal to list a regular calendar.
You can also type cal -y to list a calendar for the entire year and cal -jy to list
the julian calendar for the entire year, so you can pull out odd facts, such as “April Fools Day is the 91st day of
this year; it varies on leap years.”
Share
This is a rather silly tip to impress (or freak out) your friends by making them think you are mildly autistic / weird. Simply...
Add a Comment
Being mildly autistic does not make you "weird". And it is "display" not desplay.
March 26 2005 at 7:00 PM Report abuse Permalink rate up rate down ReplyThis one is my favorite: 'cal 9 1752'. See http://en.wikipedia.org/wiki/Gregorian_calendar for the history behind it.
March 26 2005 at 6:10 PM Report abuse Permalink rate up rate down ReplyOr try a shell script I wrote that helps me keep a calendar on my desktop that indicates the current day. Geektool runs the script to keep it on the desktop, and here's the script: #!/bin/sh # # cald - if user doesn't give an argument, put [ ] around today's # date on this month's calendar case $# in 0) set x `date` # Get the current day of the month into $4 /usr/bin/cal | # Put > < around $4 (shell expands $4 inside the doublequotes) sed -e 's/^/ /' -e "s/ $4$/[$4]/" -e "s/ $4 /[$4]/" ;; # If arguments are given, just run the normal cal *) /usr/bin/cal "$@" ;; esac
March 26 2005 at 4:30 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Altec Lansing Octiv Duo iDock for $48 + free shipping
- Used Apple iMac 17" Core 2 Duo 1.83GHz for $430 + $28 s&h
- Lounge Deluxe Stand for iPhone / iPod touch for $28 + $8 s&h
- Brookstone Surround-Sound Earbuds for $14 + $7 s&h
- Refurbished Skullcandy Tokidoki Smokin' Buds Mic'd Headset for $5 + $2 s&h
- Stitchway Backup Battery for iPod / iPhone for $5 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



3 Comments