Jump to content

System [Current Day of Year]


wrj0
Go to solution Solved by wrj0,

Recommended Posts

Posted

In both my Polisy and eisy, I noticed today that $iISY.DayOfYear = [Current Day of Year] sets that variable to 48.  But, today is day 49 for 2023 per epochconverter.com.  Both devices correctly show today's date is Sat 02/18/2023.  IoX v5.5.6 on both devices.  What am I missing?

Posted
In both my Polisy and eisy, I noticed today that $iISY.DayOfYear = [Current Day of Year] sets that variable to 48.  But, today is day 49 for 2023 per epochconverter.com.  Both devices correctly show today's date is Sat 02/18/2023.  IoX v5.5.6 on both devices.  What am I missing?
is your am and pm set correctly ? I've been fooled many times with that on other clocks.

Sent from my SM-G781W using Tapatalk

Posted
43 minutes ago, larryllix said:

is your am and pm set correctly ?
 

Yep, clock is set to 24-hour format, and is correct.  Good thought, though.

Posted
2 hours ago, wrj0 said:

In both my Polisy and eisy, I noticed today that $iISY.DayOfYear = [Current Day of Year] sets that variable to 48.  But, today is day 49 for 2023 per epochconverter.com.  Both devices correctly show today's date is Sat 02/18/2023.  IoX v5.5.6 on both devices.  What am I missing?

I get 48 as well with Polisy on 5.5.7. Checked this on the Time & Date website and they say this.

https://www.timeanddate.com/date/durationresult.html?m1=1&d1=1&y1=2023&m2=2&d2=18&y2=2023

Quote

From and including: Sunday, January 1, 2023
To, but not including Saturday, February 18, 2023

Result: 48 days

It is 48 days from the start date to the end date, but not including the end date.

So I agree. Today is the 49th day of the year from and inclucing 1/1/2023.

Posted

So, IoX may be determining 01Jan as day 0.  

Easy enough to do a simple modification to correct in a program: 

$iISY.DayOfYear = [Current Day of Year]
$iISY.DayOfYear += 1
Posted
9 hours ago, wrj0 said:

In both my Polisy and eisy, I noticed today that $iISY.DayOfYear = [Current Day of Year] sets that variable to 48.

 

1 hour ago, wrj0 said:

So, IoX may be determining 01Jan as day 0.  

My ISY 994i running v5.0.16 returns 49 as the result, so I'm guessing your 48 is a bug.

1 hour ago, wrj0 said:

Easy enough to do a simple modification to correct in a program: 

Until someone reports the bug, or UDI discovers the bug, and they fix it.  Then you'll be one off the other way.  You might want to report it to UDI as a bug.

  • Like 2
  • Thanks 1
Posted
9 minutes ago, kclenden said:

My ISY 994i running v5.0.16 returns 49 as the result, so I'm guessing your 48 is a bug.

Thanks @kclenden.  Ticket opened to report this possible IoX bug.

  • Like 2
Guest
This topic is now closed to further replies.

×
×
  • Create New...