- Posts: 8
VBA get time zone from weather file
- SAWallace
- Topic Author
Less
More
22 Jun 2020 08:47 #8335
by SAWallace
VBA get time zone from weather file was created by SAWallace
Having retrieved a 'p_data' object from a weather file, I get an invalid number instead of an integer like -7 or -8 when I use the code:
sscvb_data_get_number p_data, "ts_shift_hours", dTimeZoneOffset ' Get UTC time zone offset in hours
In VBA's Immediate window:
?dTimeZoneOffset
1.06387313834624E-311
Can someone tell me where I have erred?
sscvb_data_get_number p_data, "ts_shift_hours", dTimeZoneOffset ' Get UTC time zone offset in hours
In VBA's Immediate window:
?dTimeZoneOffset
1.06387313834624E-311
Can someone tell me where I have erred?
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5423
22 Jun 2020 10:21 #8337
by pgilman
Replied by pgilman on topic VBA get time zone from weather file
Hi Steven,
The variable ts_shift_hours is an output of the pvsamv1, pvwattsv5, pvwattsv7, and swh compute modules, so you should run one of those modules before attempting to read the variable's value.
Best regards,
Paul.
The variable ts_shift_hours is an output of the pvsamv1, pvwattsv5, pvwattsv7, and swh compute modules, so you should run one of those modules before attempting to read the variable's value.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman