Skip to content

daylight savings support for WeeklySchedule #1904

@Mathadon

Description

@Mathadon

For long simulations (longer than a few weeks), the local timezone may shift by one hour for daylight savings. We currently do not support that in the weekly schedule. Moreover, different regions perform the shift at different timestamps so we cannot hardcode the shift. My proposal would be to add optional support for this by adding a line in the config file like the two ones at the bottom:

# Comments start with a # 
mon:0:0:10          -  3   1  -
# Comments can be added in the table too 
tue,thu:20:30:59  123  -  45  -
wed                12  1   4  -
# users can set a timezone using a unix timestamp
1711877694         summertime
1730367294       wintertime

The switch would only work if the Modelica built in variable time is in the same range as the unix time stamp used since the weekly schedule does not know which year we are in.

Would it make sense to add this to IBPSA?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions