Created
February 19, 2012 23:19
-
-
Save noromanba/1866433 to your computer and use it in GitHub Desktop.
stdout yyyy.M.D format, work in standard environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rem =========================================================================== | |
@rem stdout yyyy.M.D format, work in standard environment | |
@rem @license CC0 1.0 (Univ. PD) https://creativecommons.org/publicdomain/zero/1.0/ | |
@rem @author noromanba (http://flavors.me/noromanba) | |
@rem @homepage https://gist.github.com/1866433 | |
@rem =========================================================================== | |
:: c.f. http://ptech.g.hatena.ne.jp/noromanba/20120717 | |
@echo off | |
cd %~dp0 | |
set DATE=%DATE:/=.% | |
set DATE=%date:.0=.% | |
set VERSION=%DATE% | |
set /p NOLINEBREAK=%VERSION%< nul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment