"Days Until Christmas" Script for geektool

Discussion in 'macOS' started by Hook'Em2006, Dec 4, 2011.

  1. Hook'Em2006 macrumors 6502

    Joined:
    Sep 9, 2009
    Location:
    Plano, TX
    #1
    Im looking for a script that will shows me the days until christmas. Any Help?
     
  2. mrgraff macrumors 6502a

    mrgraff

    Joined:
    Apr 18, 2010
    Location:
    Albuquerque
    #2
    THEN=`date -v11y -v25d -v12m +%s`
    SECS=$(($THEN-$(date +%s)))
    echo "Days: "$(($SECS/3600/24))
     
  3. Hook'Em2006 thread starter macrumors 6502

    Joined:
    Sep 9, 2009
    Location:
    Plano, TX
    #3
    I tried putting that into a shell script and nothing pulled up. :-/

    ----------

    Nevermind, I got it working. Thank you for your help!
     

Share This Page