---
name: "Time.localTime"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/Time.localTime"
---

# Time.localTime(3kaya)

Convert a time to local time.

## NAME

Time::localTime - Convert a time to local time.

## SYNOPSIS

**Time localTime(** *Int secs=now()* **)**

## ARGUMENTS

**secs** The number of seconds since Jan 1 1970. This argument is optional and defaults to the current time.

## DESCRIPTION

Converts a time expressed in seconds since Jan 1 1970 to a **Time.Time (3kaya)** , using the current local timezone.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

## RELATED

**Time.Time (3kaya)**

**Time.gmTime (3kaya)**

**Time.mkTime (3kaya)**

**Time.time (3kaya)**
