{"id":2556,"date":"2017-12-09T05:16:14","date_gmt":"2017-12-09T05:16:14","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2556"},"modified":"2020-01-09T08:04:16","modified_gmt":"2020-01-09T08:04:16","slug":"dos-command-to-display-time-without-prompting-for-new-time","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/dos-command-to-display-time-without-prompting-for-new-time\/","title":{"rendered":"DOS Command to display time without prompting for New time"},"content":{"rendered":"<p><strong>scmuser created the topic: DOS Command to display time without prompting for New time<\/strong><\/p>\n<p>I think most of us know the DOS command \u201ctime\/T\u201d which displays current system time without prompting for new time.<\/p>\n<p>But If one needs more granular output, say in HH:MM:SS format, here is a way out, use \u201cecho %TIME%\u201d which expands to current time using same format as TIME command.<\/p>\n<p>There are so many other things which can be echoed. For example, try any of the following variables:<br \/>\n%CD% \u2013 expands to the current directory string.<\/p>\n<p>%DATE% \u2013 expands to current date using same format as DATE command.<\/p>\n<p>%RANDOM% \u2013 expands to a random decimal number between 0 and 32767.<\/p>\n<p>%ERRORLEVEL% \u2013 expands to the current ERRORLEVEL value<\/p>\n<p>%CMDEXTVERSION% \u2013 expands to the current Command Processor Extensions version number.<\/p>\n<p>%CMDCMDLINE% \u2013 expands to the original command line that invoked the Command Processor.<\/p>\n<p>%PATH% \u2013 expands the current PATH variable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>scmuser created the topic: DOS Command to display time without prompting for New time I think most of us know the DOS command \u201ctime\/T\u201d which displays current system time without&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[57],"tags":[333],"class_list":["post-2556","post","type-post","status-publish","format-standard","hentry","category-scripting","tag-command"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2556"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2556\/revisions"}],"predecessor-version":[{"id":2557,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2556\/revisions\/2557"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}