Debian Codegraph @

doc/SystemTap_Tapset_Reference/man3/function::tz_ctime.3stap

raw
1 '\" t
2 .\" Title: function::tz_ctime
3 .\" Author:
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\" Date: October 2025
6 .\" Manual: Time utility functions
7 .\" Source: SystemTap Tapset Reference
8 .\" Language: English
9 .\"
10 .TH "FUNCTION::TZ_CTIME" "3stap" "October 2025" "SystemTap Tapset Reference" "Time utility functions"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 function::tz_ctime \- Convert seconds since epoch into human readable date/time string, with local time zone
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 tz_ctime(epochsecs:)
36 .fi
37 .SH "ARGUMENTS"
38 .PP
39 \fIepochsecs\fR
40 .RS 4
41 number of seconds since epoch (as returned by
42 \fBgettimeofday_s\fR)
43 .RE
44 .SH "DESCRIPTION"
45 .PP
46 Takes an argument of seconds since the epoch as returned by
47 \fBgettimeofday_s\fR\&. Returns a string of the same form as
48 \fBctime\fR, but offsets the epoch time for the local time zone, and appends the name of the local time zone\&. The string length may vary\&. The time zone information is passed by staprun at script startup only\&.
49 .SH SEE ALSO\n
50 .IR tapset::tzinfo (3stap)