@day() and @weekday() return wrong data
Posted: Tue Nov 20, 2012 3:47 am
Dear eviews,
I currently use eviews 7 (Jul 20 2012 build) and think there are two bugs.
When I run the code as follows
1) "day" takes 2 for the 1st January 1970 and na on 31 December 2012!
2) "weekday" returns 7 for Staturday and 1 for Sunday, contrary to what is written in the reference books. Additionally, on 31 December 2012, the assigned value is na.
Thank you in advance for your help.
Best regards,
Yves
I currently use eviews 7 (Jul 20 2012 build) and think there are two bugs.
When I run the code as follows
Code: Select all
workfile wk_test d7 1970 2012
smpl 1970 2012
pagecreate(page="DAY") d7 1970 2012
genr one = 1
genr day = @day(one)
genr weekday = @weekday(one)
2) "weekday" returns 7 for Staturday and 1 for Sunday, contrary to what is written in the reference books. Additionally, on 31 December 2012, the assigned value is na.
Thank you in advance for your help.
Best regards,
Yves