Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6032 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Does anyone know of a way to get current time from the Server rather than the client machine? We have a time tracking system setup that requires a get current time function. The problem is that we need to make sure that all the client machines have their time set accurately.

Would love to be able to get the current time off the FMServer machine or some other centralized computer.

Posted

Get(CurrentHostTimestamp)

Posted

Of course you can't use it automatically as the auto enter modification value. But see the tip on John Mark Osborne's web site for how to have the Host Time Stamp be the automatically generated one.

I premiered this at a recent FMDiSC meeting.

Steven

Posted

Hi Steven!

I looked for what you mentioned on JMO's site and couldn't find it. However, there are many techniques which work... Check Auto-Enter by calculation and uncheck Do Not Replace Existing value. You need a modification timestamp field anyway, then any calculation such as:

Let ( trigger = regular Auto-Enter TimeStamp field ; Get ( CurrentHostTimeStamp ) )

or

If ( regular Auto-Enter Timestamp field ; Get ( CurrentHostTimeStamp ) ; Get ( CurrentHostTimeStamp ) )

Each time the standard auto-enter modification timestamp changes (meaning any field data changes within that table) then calc will fire as well. If you have a way without using an regular auto-enter modifcation timestamp to trigger it, I'd like to know! Of course you can also put all fields within the Let() as:

Let ( trigger = StartDate&EndDate&User&Amount ... ; Get ( CurrentHostTimeStamp ) )

I am sure there are even more ways. Is the way you're suggesting different still? I'd love to see it. Can you tell me where to look on his site?

LaRetta :wink2:

This topic is 6032 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.