Jump 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.
Juggernaut

FM weakness to calculate accurate time.

Featured Replies

I give an example file below:

FM calculates two consequently years two days less...

In real time a year begin 12 a.m in 1/1/xxxx and end 12 a.m 12/31/xxxx.

No I did not post this thread two times.

Pascal

test_dates.zip

If you have 5 days how many full nights between them, without the halves initiating and ending? Filemaker's dateformat knows nothing about time, it's just an integer behind the screens, while the an algorithm establishes what date it correspond to.

To establish what qualifies as a new year from a given date must this conversion be kept in mind (using your fieldnames):

Date ( Month ( DateStart ) ; Day ( DateStart ) ; Year ( DateStart )+1 )

Say you enter 29th of february 2004 will the same day the year after be 1st of march 2005 ...since there is nothing including your midnight distinctions - must even you accept that it's only a representation of an integer value, where it makes absolutely no sense to represent two days as 1,9999999999 something.

--sd

I think the answer is much simpler. In the formula:

DateEnd - DateStart

the last day of the period is not included. If an event starts and ends on the same day, the result is zero. To include the last day, use:

DateEnd - DateStart + 1

the last day of the period is not included

Is it much different than telling that each day has a single integer value attached, and that two days next to each other differs with just one:

1 next to 2 gives 1 ...if the difference is made up?

--sd

Is it much different than telling that each day has a single integer value attached

I don't know - it seems the same thing to me, just from a different perspective. 2 - 1 = 1, but in everyday use, an event that started on Monday and ended on Tuesday is considered to have lasted 2 days (as if it ended on Wednesday 0:00).

Create an account or sign in to comment

Important Information

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

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.