---
name: "wcsftime"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd", "macos"]
url: "https://new.carta.tech/wcsftime"
---

# wcsftime(3)

convert date and time to a wide-character string

## NAME

**wcsftime** – convert date and time to a wide-character string

## LIBRARY

Standard C Library (libc, -lc)

## SYNOPSIS

**#include \<wchar.h\>**

*size\_t*\

**wcsftime**(*wchar\_t \* restrict wcs*, *size\_t maxsize*, *const wchar\_t \* restrict format*, *const struct tm \* restrict timeptr*);

## DESCRIPTION

The **wcsftime**() function is equivalent to the **strftime**() function except for the types of its arguments. Refer to [strftime(3)](/strftime/3.md) for a detailed description.

## COMPATIBILITY

Some early implementations of **wcsftime**() had a *format* argument with type *const char \** instead of *const wchar\_t \**.

## SEE ALSO

[strftime(3)](/strftime/3.md)

## STANDARDS

The **wcsftime**() function conforms to ISO/IEC 9899:1999 (“ISO C99”).
