O'Reilly logo

Practical Programming in Tcl & Tk, Third Edition by Brent B. Welch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The clock Command

The clock command eliminates the need to exec date to get the time of day in Tcl. The equivalent is:

clock format [clock seconds]

The format operation takes an optional format string that lets you control the date and time string. There is also clock scan to parse clock values, and clock clicks to get high resolution clock values. The clock command is described on page 173.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required