"date" variable
I've noticed that the variable "date" (getvar "date") returns a value that increases by 2 days for each single day change.I compared the value as returned by AutoCAD with the one returned by Bricscad, and the Bricscad value is exactly double the AutoCAD value.I use this variable to keep track of days, and was surprised to see the value increase at twice the rate I expected.
Comments
-
I can't remember the difference anymore, but I have one which uses (getvar "cdate") and it gives the correct date.The computer OTOH, often jumps forward a day and the system date is incorrect. Smart enough to gain an hour for daylight saving (which I don't want it to do since I refuse to reset clocks for it), but can't always get the date right.
0 -
(getvar "date") returns the Julian day.The Julian day or Julian day number (JDN) is the integer number of days that have elapsed since the initial epoch defined as noon Universal Time (UT) Monday, January 1, 4713 BC in the proleptic Julian calendar.Using this variable is a simple way of keeping track of elapsed days, without having to account for the number of days in each month.
0 -
I thought that was it, but couldn't remember how day 1 was determined. Surely it still uses the system clock for that and I assume it works (at least as well as they ever work)?Sorry I'm no help, but I'm interested to know too.
0 -
There was indeed a bug in the 'DATE' variable. It is now fixed. The fix will be incorporated in the next release.
0