Time Functions

Recent changes
Table of contents
Links to this page


Time format conversion functions


Working in software I'm constantly having to look up the functions in C, Python, etc., for converting between different representations of time. So I made up this chart, printed it, and put it on the wall.

Saves me time ...


I know "Seconds since epoch" is a bit odd for the destination of "clock", but in another sense it's right. It's the number of seconds this process has used, and that's since the process was started. But it didn't use any before it was started, so although "since epoch" is a bit misleading, it's nonetheless right.

Hmm ... thinking about that.



Links on this page

Site hosted by Colin and Rachel Wright:
  • Maths, Design, Juggling, Computing,
  • Embroidery, Proof-reading,
  • and other clever stuff.

Suggest a change ( <-- What does this mean?) / Send me email
Front Page / All pages by date / Site overview / Top of page

Universally Browser Friendly     Quotation from
Tim Berners-Lee
    Valid HTML 3.2!