time_function
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | time_function [2007/07/10 22:09] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: time_function.txt, | ||
+ | ======Synopsis: | ||
+ | $__time__() | ||
+ | |||
+ | ======Technical: | ||
+ | * All arguments, if any, are ignored. | ||
+ | * This function calls your system' | ||
+ | * In theory, every unix host should have the same time as every other unix host, but getting everyone to agree on the time is like herding cats. | ||
+ | * If you need sub-second resolution, use the $[[utime function|utime]]() function. | ||
+ | |||
+ | ======Practical: | ||
+ | You can convert the UTC value into human readable format using either the | ||
+ | $[[stime]]() function or the $[[strftime]]() function. | ||
+ | the UTC value for tracking the elapsed time between two events. | ||
+ | |||
+ | ======Returns: | ||
+ | The number of seconds that have elapsed since the epoch. | ||
+ | |||
+ | ======Examples: | ||
+ | $time() | ||
+ | |||
+ | ======History: | ||
+ | This function first appeared in ircII. | ||
time_function.txt · Last modified: 2007/07/10 22:09 by 127.0.0.1