- Posts: 8
VBA get time zone from weather file
- Steven Wallace
- Topic Author
Less
More
22 Jun 2020 08:47 #8335
by Steven Wallace
VBA get time zone from weather file was created by Steven Wallace
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.
- Paul Gilman
Less
More
- Posts: 5532
22 Jun 2020 10:21 #8337
by Paul Gilman
Replied by Paul Gilman 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: Paul Gilman