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

rps

Jul 6, 2008
378
4
#1
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

Code:
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.
 "%@year[5-5-2012,1]"
Other attempts :

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

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

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

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

Thu  Jan 16, 2014 10:36:13 [6840]
C:\JPSoft\plugins>echo %@isowyear[2014-01-22]
2014
The remaining questions is; What am I missing when trying to use the @year function?

rps
 
Dec 30, 2010
13
0
#2
Apr 13, 2010
236
3
58
The Hague
#5
Since v16 the following code stopped working.

Code:
echo %@year[%_date]
(Yes, I know there is a better way to get that year. That's not the point, is it?)