AlistairFrith

Displaying time from different timezones in PB

Discussion created by AlistairFrith on Feb 27, 2013
Latest reply on Feb 28, 2013 by AlistairFrith

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:

    • Geneva
    • Hong Kong
    • Singapore

 We also have access to AF, any ideas?

 

 

 

I thought of the following 3 options, in increasing order of desirability:

  1. 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!
  2.  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.
  3.  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.
Any other suggestions?
--- Alistair.

Outcomes