Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

bahcount - * countdown for those that don't want to do it manually

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Open Source and Free Software Group Donate to DU
 
qnr Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Jan-17-06 02:49 PM
Original message
bahcount - * countdown for those that don't want to do it manually
bahcount is a utility that counts down the seconds left until noon, January 20, 2009 in a small window. This is the expected date Bush will cease being president of the USA. The program takes your timezone into account and counts down according to EST. Various command line options are available.

http://freshmeat.net/projects/bahcount/
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
alfredo Donating Member (1000+ posts) Send PM | Profile | Ignore Sat Jan-21-06 01:07 AM
Response to Original message
1. An Applescript to do the same thing.
I modified this script to reflect the bush junta's time left in office.


repeat
set todaydate to current date
set todayday to day of todaydate
set todaytime to time of todaydate
set todayyear to year of todaydate

set launchdate to date "Tuesday, January 20, 2009 12:00:00 PM"
set launchday to day of launchdate
set launchtime to time of launchdate
set launchyear to year of launchdate

set yearsleft to launchyear - todayyear
set daysleft to launchday - todayday
set timeleft to 86400 - todaytime

set totaltimeleft to timeleft + {86400 * daysleft}
set totaltotaltimeleft to totaltimeleft + {yearsleft * 31536000}

set unroundedminutesleft to totaltotaltimeleft / 60
set totalminutesleft to {round unroundedminutesleft}
set unroundedhoursleft to totalminutesleft / 60
set totalhoursleft to {round unroundedhoursleft}
set unroundeddaysleft to totalhoursleft / 24
set totaldaysleft to {round unroundeddaysleft}
set unroundedyearsleft to totaldaysleft / 365
set totalyearsleft to {round unroundedyearsleft}


if totaltotaltimeleft is less than or equal to 0 then
display dialog "The wait is finally over!"
exit repeat
else
display dialog "There are...

" & totalyearsleft & " years,

" & totaldaysleft & " days,

" & totalhoursleft & " hours,

" & totalminutesleft & " minutes, or

" & totaltotaltimeleft & " seconds left until the bush nightmare is over.

This dialog will auto-refresh every 10 seconds, or you can manually refresh it by clicking OK." giving up after 10
end if
end repeat
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sun Dec 22nd 2024, 09:20 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Open Source and Free Software Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC