cancel
Showing results for 
Search instead for 
Did you mean: 

Get Time Period Values 12.0

Former Member
0 Kudos

All,

Is there any way to get the values of configured Time Periods at runtime. For example get the current shift start and and end time values?

Regards,

Christian

Accepted Solutions (1)

Accepted Solutions (1)

jcgood25
Active Contributor
0 Kudos

Do a Simulator History tag query for one tag and a small rowcount of 2, with your Time Period assigned and in the xml you'll see Rowsets/@StartDate and Rowsets/@EndDate

Former Member
0 Kudos

Thanks Jeremy!

jcgood25
Active Contributor
0 Kudos

This little trick is also an excellent way to understand how the time engine works, in a WYSIWYG manner. If you test your Simulator Tag query template from the Template Editor or WB and select text/xml the answers are revealed.

A simple Q/A for situations like:

What happens if I put Time=Today@08:00:00 and Duration = -1 and DurationUnits = D?

Regards,

Jeremy

Answers (0)