summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-12-01 05:49:19 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-12-01 05:49:19 -0500
commit6086a647b97bdd74732b305ec400cc83b238fe4e (patch)
tree8732b7945f0e0ca2f570e9070b57d1dc71a27b12 /build
parent33f81d2a40e4c968eda1cab665eee37209828324 (diff)
downloadaura-central-6086a647b97bdd74732b305ec400cc83b238fe4e.tar.gz
Add command to version2k to JUST get YYYYMMDD
Diffstat (limited to 'build')
-rw-r--r--build/version2k.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/version2k.py b/build/version2k.py
index 5a74d7ae5..8ecbd60eb 100644
--- a/build/version2k.py
+++ b/build/version2k.py
@@ -9,6 +9,7 @@ moduleOptionParser.add_argument("--version", "-v", dest="version", nargs="*")
moduleOptionParser.add_argument("--msbuild", "-b", dest="msbuild", action="store_true")
moduleOptionParser.add_argument("--msdate", "-d", dest="msdate", type=int)
moduleOptionParser.add_argument("--edate", "-e", dest="edate", action="store_true")
+moduleOptionParser.add_argument("--edateonly", "-ed", dest="edateonly", action="store_true")
args = moduleOptionParser.parse_args()
msBuildToday = str((datetime.utcnow().date()-date(2000,01,01)).days)
@@ -46,3 +47,7 @@ if args.msdate:
if args.edate:
print datetime.utcnow().strftime('%Y%m%d.%H%M')
sys.exit(0)
+
+if args.edateonly:
+ print datetime.utcnow().strftime('%Y%m%d')
+ sys.exit(0) \ No newline at end of file