Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
Training
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


Privacy Policy



FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

 

 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

TimeStampsBetweenList ( startTimeStamp; endTimeStamp; increment )

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 4.2  (34 votes)
  Discuss this Custom Function

Jonathan Mickelson, Thought Development Corp.
http://thought-dev.com

Calculates all the timestamps between two start and end timestamps with the given incriment value.

Sample Input:
TimeStampsBetweenList ( "10/01/2006 1:00:00"; "10/01/2006 2:00:00"; "0:20:00" )
Sample Output:
10/01/2006 1:00:00¶
10/01/2006 1:20:00¶
10/01/2006 1:40:00


 Then copy & paste into FileMaker Advanced's Edit Custom Function window.

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed

Description:

Calculates all the timestamps between two start and end timestamps with the given incriment value. This can be useful to round out time values, calculate multi-line time based keys for relationships or generate Timestamp value lists.

Output Format:

A text value list of timestamps found between the start and end time, by incriments given by the incriments parameter. Value list results return text values by their nature, thus when utilizing this custom function it may be necessary to convert any other fields using a GetAsText ( ) or GetAsTimestamp ( ) functions.

Parameters:

startTimeStamp - The TimeStamp value to start from. This time is included within the returned value list result.

endTimeStamp - A TimeStamp value to end calculation before. This time is NOT included within the returned value list result, as only incriments less than the end time are calculated, since the startTimeStamp is inclusive.

increment - A Time value representing the interval to increment by. The granularity is flexible, so hours, minutes, seconds can all be used.
---------------------
Modified: 12-3-2012
- Typed the three inputs explicitly as timestamps and time's respectively to make sure the resulting calculations function properly.

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

My Question,

Could we have this list to ignore Weekend and or a holiday list?

Martine, Terrebonne
November 04, 2013 12:48pm

Hi Martine,

For that I don't think you'd wants actual timestamps, try looking at another Custom Function of mine, at (http://www.briandunning.com/cf/1509), it is working days and is designed to handle specific working days as well as a holiday list (which can be put together from another Cf of mine, http://www.briandunning.com/cf/441).

Hope this helps, you can also just look at the techniques applied to these various CF's and customize them according to your needs. Which was how I came up with mine as well! :)

Good Luck!, let us know what you come up with!
Jonathan

Jonathan M., Los Angeles, CA
November 04, 2013 2:09pm

Thank's Jonathan, Before i read your response it's exactly what i've use.
This function is amazing thank you again.
Sweety Martine ;-)

Martine, Terrebonne
November 06, 2013 5:43am

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
City/Location:
Comment:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 5 + 9 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. decFromHex ( hexValue )
  (Mon, Oct 16, 12:34pm)
2. MonthYearList ( startmonth ; startyear ; numbermonth ; short )
  (Mon, Oct 16, 3:38am)
3. ErrorDescription ( errorNumber )
  (Wed, Sep 27, 2:51am)
4. decodeEntities (text)
  (Wed, Sep 27, 1:22am)
5. HexidecimalToNumber ( HexidecimalValue ; counter )
  (Mon, Sep 25, 12:39pm)
6. FixedFieldConverter ( Fieldname ; f1 ; f2 ; f3 ; f4 ; f5 ; f6 ; f7 ; f8 ; f9 ; f10 ; f11 ; f12 ; f13 ; f14 ; f15 ; f16 ; f17 ; f18 ; f1
  (Fri, Sep 15, 12:34pm)
7. ShannonEntropy ( text )
  (Thu, Sep 07, 5:59am)
8. LetterCount ( text ; summary )
  (Thu, Sep 07, 5:53am)

RSS Feed of Custom Functions