Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dsaouda/sdate
Simple date for windows or any OS
https://github.com/dsaouda/sdate
cmd datetime golang jodatime linux powershell windows
Last synced: 12 days ago
JSON representation
Simple date for windows or any OS
- Host: GitHub
- URL: https://github.com/dsaouda/sdate
- Owner: dsaouda
- License: apache-2.0
- Created: 2018-12-16T20:32:27.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2021-07-06T11:50:56.000Z (over 3 years ago)
- Last Synced: 2024-11-16T09:34:29.423Z (2 months ago)
- Topics: cmd, datetime, golang, jodatime, linux, powershell, windows
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Release](https://img.shields.io/github/v/release/dsaouda/sdate.svg?style=for-the-badge)](https://github.com/dsaouda/sdate/releases/latest)
[![Go Report](https://img.shields.io/badge/go%20report-A+-brightgreen.svg?style=for-the-badge)](https://goreportcard.com/report/github.com/dsaouda/sdate)# sdate
Simple date for windows cmd## Install
See https://github.com/dsaouda/sdate/releases/latest## Usage
`sdate -f "yyyy-MM-dd HH:mm:ss"`## Format help
https://github.com/vjeantet/jodaTime#format## Motivation
Difficulty formatting dates in windows bash script.For more detail see:
- https://stackoverflow.com/questions/1192476/format-date-and-time-in-a-windows-batch-script
- https://www.windows-commandline.com/get-date-time-batch-file/
- https://stackoverflow.com/questions/14810544/get-date-in-yyyymmdd-format-in-windows-batch-fileIf you are using powershell see https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-date?view=powershell-6