Functions @year[date] @isowyear[date] help


Jul 6, 2008
Here is what I get when I use the functions @year[] & @isowyear[]

I am using TCMD V16, windows 7 ultimate sp1.

There are no Plugins loaded.

Copied and pasted from the TC help v.16.0

Thu  Jan 16, 2014  3:07:27 [6840]
C:\JPSoft\plugins>echo %@isowyear[%_date]
TCC: Invalid date "%@isowyear[01/16/14]"

Thu  Jan 16, 2014 10:31:03 [6840]
C:\JPSoft\plugins>echo %@year[5-5-2012,1]
TCC: (Sys) Incorrect function.

Other attempts :

Thu  Jan 16, 2014  2:59:48 [6840]
C:\JPSoft\plugins>*echo %@YEAR[%_DATE]
TCC: (Sys) Incorrect function.

Thu  Jan 16, 2014  2:59:52 [6840]
C:\JPSoft\plugins>echo %@year[5-5-2012]
TCC: (Sys) Incorrect function.

The following seem to work so the help for @ISOWYEAR[date] just needs updating. Not tested but I suspect that the @ISODOWI[date] and @ISOWEEK[date] examples need updating.

Thu  Jan 16, 2014 10:31:28 [6840]
C:\JPSoft\plugins>echo %@isowyear[%_isodate]

Thu  Jan 16, 2014 10:36:10 [6840]
C:\JPSoft\plugins>echo %_isodate

Thu  Jan 16, 2014 10:36:13 [6840]
C:\JPSoft\plugins>echo %@isowyear[2014-01-22]

The remaining questions is; What am I missing when trying to use the @year function?

Dec 30, 2010
Apr 13, 2010
The Hague
Since v16 the following code stopped working.

echo %@year[%_date]

(Yes, I know there is a better way to get that year. That's not the point, is it?)
Dec 30, 2010
Under Regional Settings, what is your date setting format? Mine is yyyy-mm-dd and it reports errors for 5-5-2012 and 5/5/12.


Similar threads
Thread starter Title Forum Replies Date
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
Joe Caverly "Functions" in cmd.exe batch files Support 6
vefatica Library functions and line continuations? Support 4
Charles Dye Documentation Help Nits Forever: Checksum functions Support 0
Joe Caverly SETLOCAL removes Aliases and Functions Support 3
Joe Caverly @NAME supports library functions Support 2
Charles Dye Functions which no-one has ever tried to use.... Support 5
vefatica WHICH and @functions Support 2
vefatica Two @FUNCTIONs/aliases with the same name Support 4
M Keywords for commands, functions, internal variables Support 3
C Documentation near or fully obsolete functions Support 7
Charles Dye Optional F parm in checksum functions Support 0
C coding functions and subroutines Support 9
mikea How to? TCC and XMLnodes/XMLxpath functions Support 0
Dan Glynhampton Are these two functions the same? Support 2
M How to? Logic in functions... Support 5
A WAD function return values with parentheses prevent evaluation of additional functions Support 31
M "History" command not giving me what I want when executed by @Exec... functions... Support 6
Charles Dye Web help on functions Support 2
samintz Help examples for the @ISxxx functions Support 3
R specific functions for number conversion Support 2
C Unsuppressable errors from XML functions Support 5
nikbackm Checksum functions Support 4
J TCC Out of memory with aliases and functions Support 5
Peter Bratton Disappearing functions Support 1
A I dont see anything in the alias/functions/batchvariables tabs in IDE Support 13
dcantor Comments and suggestions on functions for binary buffers Support 4
sully9 How to? Unexpected %DATE% CMD variable format (vs DATE /T format) in CMDebug Support 1
mfarah Fixed The DATE command produces the wrong error message. Support 1
T Date format date different from cmd Support 7
Jesse Heines How to? How to display picture creation date with dir command Support 6
Jesse Heines "Taken" date for JPG and PNG files Support 4
Joe Caverly DATE format 4 Support 7
fpefpe touch - date format Support 2
C 7zip with date range .vs. filelist created with dir and daterange Support 0
C How to? Add date/time to custom tpipe based BTM Support 1
vefatica Download center not up to date Support 4
Joe Caverly How to? Date Range in command line for 7zip /= Support 1
N date and cmd compatibility Support 10
S Closing date for V16 suggestions Support 1
JohnQSmith DATE /T Support 13
A How to? Create a date range based upon creation date Support 2
S How to? Command dialogs vs. size/date/etc. exclusion ranges Support 1
M How to? Effectively "combine" date and time ranges... Support 2
CWBillow Make a folder named Date-Time Support 18
vefatica Do UNTIL DATETIME date time Support 6
S Date range question Support 4
Roedy date range documentation error Support 2
Jay Sage Inconsistency in Date Formats Between @DATE and @MAKEDATE Support 3
dcantor More date-related help items for V11 Support 0

Similar threads