RodM Posted July 18, 2010 Posted July 18, 2010 Hi.. b4 i wander in the wrong direction.. thought i ask something I can't find answer to/// TIA I am currently using current time and time to timestamp our messages/// Now we have a client account in another Time Zone.. Thought I add a Account field acc_timezone It be + or - number from our current timezone, that the operator is working at taking a message. Trying to figure how to timestamp Client message with their own timezone? If not isEmpty(acc_timezone) [color:blue]How might I calculate +/- from current date/ time? else */ default use system time to mark message Endif
Vaughan Posted July 18, 2010 Posted July 18, 2010 Use the Get( Current HostTimestamp ) function, it uses the time from the host computer. If the solution is served from a central FMS box that this function will return the timestamp from the central server regardless of the clock setting of the client's machine. This will completely avoid the issue.
comment Posted July 18, 2010 Posted July 18, 2010 To calculate time in another timezone, add/subtract the difference in seconds.
RodM Posted July 18, 2010 Author Posted July 18, 2010 thanks for your idea.. seconds ummmm +- to a Timestamp command... Anyone got some snippets of code that is close..that helps me to read and understand maybe, If anyone has such to share..
RodM Posted July 18, 2010 Author Posted July 18, 2010 (edited) what if I not using server... does a server comand return peer to peer... thanks Edited July 18, 2010 by Guest
comment Posted July 18, 2010 Posted July 18, 2010 Say you have a timestamp field with the time in Eugene, OR (PDT). To translate that to time in Washington DC (EDT), use = YourTimestampField + 3 * 3600 Note that this is a simplified formula that does not account for differences in daylight saving time start and end. The above example will return incorrect results for 3 hours twice a year.
Recommended Posts
This topic is 5242 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now