![]() If you don't know how to use the examples given here, or if you prefer a Windows version independent tool, have a look at RenTS by Kees Hiemstra ![]() A frequent question is how to rename log files with their date and time.Hard to imagine you wouldn't find the date/time related information you're looking for here. Stockton's Date and Time section contains a lot of useful information on our calendars and many routines to handle date and time in several languages.Īnd it contains (I quote) "possibly the only code that can calculate the date of Gregorian Easter Sunday in the year 0123456789ABC working entirely in base 13". Frank's Calendar Script demonstrates several interresting batch techniques, like how to determine if this is a leap year (link to a post on by Frank).Advanced date math in NT, or how to calculate the date several days ago or several days ahead (link to a post on by Phil Robyn).Why "almost"? Because this batch file will fail when the year is not the last part of the date string, as in YYYY-MM-DD (very well possible), or when no delimiters are used, as in DDMMYYYY (highly improbable).Ĭontrary to my own SortDate (3.*) solution which uses REGEDIT, Simon's/Michael's solution only uses internal commands. This post to by Simon Sheppard, based on a previous post by Michael Jerkovic, shows an ingenious way to get today's date in an almost language independent format. Examples showing how to create directories named after the current date or week number (these examples use the scripts demonstrated in the Non-batch solutions section besides batch commands).How to extract the day, month, year, hours, minutes andvanced syntax and some not-so-basic examples of date math in CMD.EXE.Īdd days or weeks to the current day, subtract days or weeks, find the timespan between two dates, find the weekday of any date.įrom very basic to really advanced: samples of date and time manipulation in CMD.EXE. The basic syntax and some simple examples of date math in CMD.EXE. Date and Time using BATCHMAN by Michael Mefford.VoltCraft Energy Logger 3500 Configuration.Exploring the Youless LS120 Energy Monitor.
0 Comments
Leave a Reply. |