1FUNCTION::TZ_CTIME(3stap)   Time utility functions   FUNCTION::TZ_CTIME(3stap)
2
3
4

NAME

6       function::tz_ctime - Convert seconds since epoch into human readable
7       date/time string, with local time zone
8

SYNOPSIS

10           tz_ctime(epochsecs:)
11

ARGUMENTS

13       epochsecs
14           number of seconds since epoch (as returned by gettimeofday_s)
15

DESCRIPTION

17       Takes an argument of seconds since the epoch as returned by
18       gettimeofday_s. Returns a string of the same form as ctime, but offsets
19       the epoch time for the local time zone, and appends the name of the
20       local time zone. The string length may vary. The time zone information
21       is passed by staprun at script startup only.
22

SEE ALSO

24       tapset::tzinfo(3stap)
25
26
27
28SystemTap Tapset Reference        April 2023         FUNCTION::TZ_CTIME(3stap)
Impressum