1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-18 10:22:00 +00:00
ohmyzsh/plugins/isodate
2024-08-09 09:44:46 +02:00
..
isodate.plugin.zsh feat(plugins): Add new isodate plugin for friendly date formatting commands (#9963) 2021-06-12 06:08:27 -07:00
README.md docs: improve several plugin READMEs and add one for ssh plugin 2024-08-09 09:44:46 +02:00

Isodate plugin

This plugin adds completion for the ISO 8601, as well as some aliases for common Date commands.

To use it, add isodate to the plugins array in your zshrc file:

plugins=(... isodate)

Maintainer: @Frani

Aliases

Alias Command Description
isodate date +%Y-%m-%dT%H:%M:%S%z Display the current date with UTC offset and ISO 8601-2 extended format
isodate_utc date -u +%Y-%m-%dT%H:%M:%SZ Display the current date in UTC and ISO 8601-2 extended format
isodate_basic date -u +%Y%m%dT%H%M%SZ Display the current date in UTC and ISO 8601 basic format
unixstamp date +%s Display the current date as a Unix timestamp (seconds since the Unix epoch)
date_locale date +"%c" Display the current date using the default locale's format