Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference »

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

seconds

the seconds
the secs

Value returned: an integer equal to the number of seconds between midnight, January 1, 1904, and the current time set in your computer

Demo Script

on secondsDemo
-- Check the speed of an operation
put 0 into total
put the seconds into startTime
repeat with number = 1 to 1000
set cursor to busy
add number to total
end repeat
put the seconds - startTime into totalTime
answer "The sum of numbers 1 to 1000 is" && total &&¬
"and it took" && totalTime && "seconds to figure this out."
end secondsDemo

Related Topics

HyperTalk Reference


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Modern View