Apex Time spanning midnight

psumms

Active Member
View Badges
Joined
Sep 11, 2019
Messages
189
Reaction score
124
Location
United Kingdom
What state or country do you live in
United Kingdom
Rating - 0%
0   0   0
Am i correct in thinking that the Apex time command cannot span midnight, so the following would not be valid:
If Time 22:00 to 07:00 Then OFF
and instead you would need to use two separate lines, e.g.
If Time 22:00 to 23:59 Then OFF
If Time 00:00 to 07:00 Then OFF


Also, bonus question, does the OSC command always calculate a starting point from midnight?
 
Is it possible to reverse your command? Instead of IF 22:00 to 07:00 THEN OFF, try IF 07:00 to 22:00 then ON. It gets rid
Of your problem in a single line
 
You can span midnight. I do it with my ATS lights. OSC starts from midnight, yes.
 
Is it possible to reverse your command? Instead of IF 22:00 to 07:00 THEN OFF, try IF 07:00 to 22:00 then ON. It gets rid
Of your problem in a single line
Unfortunately not, there are several other commands that become difficult this way around.
 
Will test again. Something i've noticed which I think confused my initial test, my Apex system time is off at the moment. Seems Neptune have hard-coded daylight savings to those of US dates which leaves three weeks in March where my timers are off! Bizarre decision from a programming point of view!
 
Yes, If Time can span midnight:

Set OFF
If Time 18:00 to 08:00 Then ON
image3-6.png

This is from my tutorial on Apex Timers: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-2-timers.689/
 

TOP 10 Trending Threads

HOW MUCH DOES A FISH’S FEEDING REQUIREMENTS AFFECT YOUR STOCKING DECISIONS?

  • A lot! - I avoid fish that require frequent or specialized feeding

    Votes: 21 31.8%
  • Quite a bit, but an automatic feeder can change my answer

    Votes: 10 15.2%
  • It depends on whether my nutrient export can handle it

    Votes: 9 13.6%
  • It depends on how badly I want the fish

    Votes: 14 21.2%
  • Not much. I’m willing to adjust my routine

    Votes: 11 16.7%
  • Not at all. Feeding demands don’t limit my stocking choices

    Votes: 12 18.2%
  • I usually learn about the demanding feeding schedule after buying the fish!

    Votes: 2 3.0%
  • I haven’t really considered this before

    Votes: 4 6.1%
  • Something else (see my comments in the thread)

    Votes: 2 3.0%
Back
Top
Home
Post thread…
Market
What's new