FUNCTION::TZ\_CTIME(3stap) Time utility functions FUNCTION::TZ\_CTIME(3stap)

# [NAME](#NAME)

function::tz\_ctime - Convert seconds since epoch into human readable date/time string, with local time zone

# [SYNOPSIS](#SYNOPSIS)

```


    tz_ctime(epochsecs:)
```

# [ARGUMENTS](#ARGUMENTS)

*epochsecs*

number of seconds since epoch (as returned by **gettimeofday\_s**)

# [DESCRIPTION](#DESCRIPTION)

Takes an argument of seconds since the epoch as returned by **gettimeofday\_s**. Returns a string of the same form as **ctime**, 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.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::tzinfo*(3stap)](/man/enterprise-packages/systemtap/tapset::tzinfo.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::tz_ctime(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
