Geektool GeekTool: How to show count of weeks from a given date?

Discussion in 'UI Customization' started by brocato, Nov 8, 2012.

  1. brocato macrumors newbie

    Nov 8, 2012
    Hi guys,

    recently tried GeekTool and find it pretty cool. looking for a script that will show a week number count starting from a specific date (for example dec 1st, 2012) with the week number going up every 7 days. any help is appreciated.

  2. GimmeSlack12 macrumors 603


    Apr 29, 2005
    San Francisco
    I imagine you should be able to google this answer. You just need to find out the terminal command to give you the number of the day of this year and divide that by 7.
  3. brocato, Nov 8, 2012
    Last edited by a moderator: Nov 9, 2012

    brocato thread starter macrumors newbie

    Nov 8, 2012
    I have been looking all over the internet in that past few days. the closest thing I found was a countdown command to a specific date but I'm not familiar enough with the code to tweak it for what I want

    Found it:

    took the yearly week count (date +%V) and subtracted the number of weeks to start from my desired date.

Share This Page