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

# Time.cookieTime(3kaya)

Return a HTTP Cookie expiry time

## NAME

Time::cookieTime - Return a HTTP Cookie expiry time

## SYNOPSIS

**String cookieTime(** *Time t* **)**

## ARGUMENTS

**t** The Time, which must be in the UTC (+0000) timezone.

## DESCRIPTION

This function returns a String representing a time in the format used by HTTP Cookies, which is almost the same as RFC2822 but differs from it in a few ways for no apparent reason. This format should only be used for HTTP cookies, and not for any other purpose.

## 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.rfc2822Time (3kaya)**

**WebCommon.setCookie (3kaya)**
