toys

Tools and things that make my life easier - y'all might like them too

View the Project on GitHub pfuntner/toys

unixdate

Purpose

Invoke date command using Unix format on Windoze

Syntax

Syntax: unixdate [date options]

Options and arguments

See options and arguments for date such this on this man page

Example

$ unixdate                       # simplest form of the command
Tue Apr  3 08:22:23 EDT 2018

$ unixdate -u                    # specify -u along and Unix format will still be added
Tue Apr  3 12:22:29 UTC 2018

$ unixdate +%Y%m%d%H%M%S         # specify a specific format, Unix format is avoided
20180403082255

$ /usr/bin/date                  # you can still get the "normal Windoze output" since you're not using the frontend at all
Tue, Apr  3, 2018  8:26:13 AM

$ alias date=unixdate            # override /usr/bin/date with an alias
$ date -R                        # alternate way of specifiying a format
Tue, 03 Apr 2018 08:54:08 -0400

$

Notes