This repository has been archived on 2024-06-19. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-old/dot_oh-my-zsh/plugins/isodate
2024-03-03 15:33:59 +01:00
..
isodate.plugin.zsh Added basic nvim config, replaced vim with nvim 2024-03-03 15:33:59 +01:00
README.md Added basic nvim config, replaced vim with nvim 2024-03-03 15:33:59 +01:00

Isodate plugin

Maintainer: @Frani

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)

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