epochClockBinary.frink

View or download epochClockBinary.frink in plain text format

// This shows the so-called "UNIX time" in binary as an animated clock.
w=new graphics.show[]
while true
{
   g = new graphics
   g.font["Monospaced",1]
   g.text[(now[] - #1970 UTC#) div s -> binary, 0, 0]
   w.replaceGraphics[g]
   sleep[1 s]
}


View or download epochClockBinary.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 17841 days, 20 hours, 57 minutes ago.