Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Get(CurrentTime) not working for me

Featured Replies

I though this would be a breeze, but it is driving me batty.

I need to change a layout between the hours of midnight and midday.

In other words, if the current time is between midnight and midday, go to layout A, otherwise go to layout B.

This is activated by a button, so I don't need any scheduling plug-ins or anything like that.

My script currently reads:

If(Get ( CurrentTime ) ≥ "00:00:01" and Get ( CurrentTime ) ≤ "11:59:00"

then go to layout A

Else

go to layout B.

So my machine time is 14:26 - when I run the script, it goes to layout A.

When I look at Get(currentTime) in DataViewer, it shows 3:26PM - so maybe this has something to with 24-hour clock?

I've tried using a Let function, but it still doesnt do what I think it should. I also tried using Get(CurrentTimeStamp).

Any suggestions?

Thanks

Steve aka Dubl

TaxiCab Manager

Taxi Owner & Taxi Fleet Management Software

www.taxicabmanager.com

m: 0414 555 195ew

Edited by Guest

Try

GetAsNumber ( Get(CurrentTime) )

Goto Layout A

Else Layout B

Filemaker stores time as seconds from 0 - 86399 since there are 86400 seconds in a day.

Edited by Guest

Hi Dubl, long time no see.

I think you need to use the Time Function as well

Get ( CurrentTime ) ≥ Time ( 0 ; 0 ; 0 ) and Get ( CurrentTime ) ≤ Time ( 22 ; 0 ; 0 )

adjust the second time to what you need,

Lee

Try this:

Set Variable [ $t; Get ( CurrentTime ) ]

If [ $t > 0 and $t < 43200 ]

* Sorry didnt see the other posts.

Edited by Guest

  • Author

Thanks Ocean, Lee and Mr. Vodka

All good now - although at first I tried all three methods and it STILL wasn't working, until I realised that when changing my machine time to test it I had inadvertently set the time to AM instead of PM.

DOH!!!!

Appreciate the quick responses very much :)

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.