Is Daylight Saving On ???

Discussion in 'Pascal Logic Code Examples' started by Dave Byron, Oct 12, 2010.

  1. Dave Byron

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    This is what I want to do, set pool pump schedules according to if it is daylight saving or not.
    The logic help file no help.
    So in the logic I want some thing like this, syntax not correct;

    if daylight saving = On then
    begin
    set enable group = on
    else
    set enable group = off
    end;

    then use the enable group to control the schedules.

    tks

    dave
     
    Dave Byron, Oct 12, 2010
    #1
  2. Dave Byron

    Mark

    Joined:
    Oct 28, 2004
    Messages:
    196
    Likes Received:
    1
    Location:
    Grenoble, France
    Day Light Saving in Logic

    Hi Dave,

    There's no native function to get DLS, but Inbuilt System IO will do the trick:
    Code:
    if GetBoolIBSystemIO("Daylight Savings") = true then
    ...
    Cheers,
    Mark.
     
    Mark, Oct 12, 2010
    #2
  3. Dave Byron

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    Mark
    So simple when you know the answer, I tried using the wizard but no luck.
    May I suggest that be put in the logic help file .


    tks
    dave
     
    Dave Byron, Oct 12, 2010
    #3
  4. Dave Byron

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    It is in the logic help file topic "In-Built System IO Variables". The index does have a reference to "Daylight Savings".

    Given that there are 220 in-built system IO variables, they don't have a help file page each. Would it be worthwhile having an example for each of the in-built system IO variables?
     
    Darren, Oct 12, 2010
    #4
  5. Dave Byron

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    Darren
    i found the reference to it in the "In Built System" etc forgot the the dash, and got a button to show status.

    Maybe when you click on the "GetBoolIBSystemIO" it should show a list of which ones it applies to.

    And an entry in the index that takes you to that page, after all the keyword I was using was "daylight saving".
    Just a thought.

    tks
    dave
     
    Dave Byron, Oct 12, 2010
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.