Help us shape the future of Go! Take the 2026 Go Developer Survey

date

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package date implements the `date` built-in.

Usage:

date [OPTIONS] [+FORMAT]

Options:

-u, --utc          force UTC (default; date defaults to UTC
                   unless $TZ is set in the environment)
-d, --date=STRING  parse STRING as the source time
-r, --reference=FILE  use FILE's modification time
-R, --rfc-2822     output RFC 2822 / RFC 822 date format
-I[FMT]            output ISO 8601 (FMT in date/hours/minutes/seconds/ns)
--help             show this help and exit

FORMAT is a strftime-style string (most %-conversions supported); Wave G for the supported subset.

All file I/O routes through Context.FS; stdout via Context.Stdout.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() command.Command

New returns the date command.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL