One of our customers has the following requirement for their PB displays:
I want to be able to display the current time from a number of different countries on a Processbook page:
- Hong Kong
We also have access to AF, any ideas?
I thought of the following 3 options, in increasing order of desirability:
- There is a ‘Timestamp’ type tag, which I have never used. It may be possible to define 24 of these but I am not sure how to populate them. Maybe there is a COM Connector that will talk to a time server? Seems a bit of a waste of a PI tag though!
- Alternatively, you could always do it in VBA or with a ProcessBook addin. I would have it look through all the Text symbols for ones named something like “TimestampGMT-12” through “TimestampGMT+12” and populate their value with the appropriate time. This would then be called in the display on-update event handler.
- I don’t think AF can help out of the box but I could be wrong. You could write a custom data reference whose configuration includes the GMT offset.