countdown to failiure
countdown to failiure
- Subject: countdown to failiure
- From: Jason Ryant <email@hidden>
- Date: Sun, 11 Mar 2001 21:24:01 -0800 (PST)
hi all. i would like to build a simplistic script consisting of two
variables: 1. the current date and time and, 2. the date and time
specified by the user. what i would like to happen is for the user to
specify a date [lets say new year's] and for the script to tell the user
how much time there is until then. i whipped up something like this:
property UserDate : date
if UserDate = "" then
set UserDate to
display dialog "Please enter a date to track" default
answer ""
else
set TimeRemaning to ((UserDate) - (current date))
display dialog TimeRemaning
end if
any scripter can see that it won't work, but this is the jist of what i
want to happen. another question: is there a way to only use the shortened
date [eg. DDMMYY] insted of the full day of the week and month and year
written out? what about just getting the current time? i'm probably
missing a few additions for that so any tips would be much appreciated.
TIA,
jason
:)
---
Q. What happens when Microsoft combines the attributes of Windows CE,
Windows Me, and Windows NT?
A. You get Windows CEMeNT -- "Hard as a rock, Dumb as a brick."