epochClockBinary.frink

Download or view 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]
}


Download or view 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 19944 days, 16 hours, 55 minutes ago.