Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

System [Current Day of Year]

Featured Replies

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?

Solved by wrj0

Go to solution
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

  • Author
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.

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.

  • Author

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
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.

  • Author
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.

  • Author
  • Solution

Chris acknowledged the bug report, and offered to investigate.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.