---
name: "function::tz_ctime"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::tz_ctime"
---

# function::tz\_ctime(3stap)

Convert seconds since epoch into human readable date/time string, with local time zone

## NAME

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

## SYNOPSIS

```
    tz_ctime(epochsecs:)
```

## ARGUMENTS

*epochsecs*

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

## 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

[*tapset::tzinfo*(3stap)](/tapset::tzinfo/3stap.md)
