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

Timestamp_Format_RFC822 ( _timestamp ; _timezone )

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 4.5  (36 votes)
  Discuss this Custom Function

Rewolfer, -
http://rewolfer.de

Formats a valid RFC2822-timestamps as FMP-timestamps or vice versa.

Sample Input:
Timestamp_Format_RFC822 ("09/12/2002 18:12:17"; -3.5 )
Timestamp_Format_RFC822 ("Thu, 12 Sep 2002 18:12:17 +0200"; "" )
Timestamp_Format_RFC822 ("Thu, 12 Sep 2002 18:12:17 +0200"; 1 )
Timestamp_Format_RFC822 ("Tue, 30 Feb 2002 18:12:17 +0630"; 1 )
Sample Output:
"Thu, 12 Sep 2002 18:12:17 -0330" (Newfoundland Standard Time)

"09/12/2002 18:12:17"

"09/12/2002 16:12:17" (Universal Time/ GMT)

"" (invalid date)


 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:

/*=========================================

FORM: Timestamp_Format_RFC822 ( _timestamp ; _timezone )

PURPOSE: formats valid RFC2822-timestamps as FMP-timestamps or vice versa

PARAMETER: _timestamp RFC822 or FMP-timestamp regional
_timezone number -11.5 to 11.5

RESULT: FMP-timestamp or RFC822-timestamp or nothing

DEPENDENCY: IsTimestamp()

NOTE: valid FMP-timestamp will be formatted as RFC822-timestamp with timezone (if supplied as decimal hour)
valid RFC822-timestamp will be formatted as FMP-timestamp (as UniversalTime if _timezone is not 0 or not empty)
no in-/ output of textual timezones like "EST"
tolerates whitespace
tolerates 2-digit-years in RFC822-timestamps
requires 4-digit-years in FMP-timestamps
see IsTimestamp(), IsDate(), IsTime() for further details

EXAMPLE: Stamp_Format_RFC822 ("09/12/2002 18:12:17"; -3.5 ) => "Thu, 12 Sep 2002 18:12:17 -0330" (Newfoundland Standard Time)
Stamp_Format_RFC822 ("Thu, 12 Sep 2002 18:12:17 +0200"; "" ) => "09/12/2002 18:12:17"
Stamp_Format_RFC822 ("Thu, 12 Sep 2002 18:12:17 +0200"; 1 ) => "09/12/2002 16:12:17" (Universal Time/ GMT)
Stamp_Format_RFC822 ("Tue, 30 Feb 2002 18:12:17 +0630"; 1 ) => "" (invalid date)

HISTORY: 2006-03-01 [145342] 1.00 tsw initial version
2006-03-01 [210707] 2.00 tsw with local time and error checking
2007-02-19 [003455] 2.10 tsw needed update because of changes to Text_Get_DelimitedValue-function
2011-03-15 [192012] 2.20 tsw renamed according to new naming convention
2011-03-16 [115008] 3.00 tsw if other than ISO-dates were used, function didn't work
2011-09-15 [145831] 3.01 tsw new documentation
2012-04-23 [223756] 4.00 tsw merged functions; converts timestamp to RFC822 or vice versa
2012-04-25 [214219] 4.10 tsw shorten code thru IsTimestamp()

DEVELOPER: tsw @ http://rewolfer.de

=========================================*/

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:

There are no comments yet. Be the first to post 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 8 + 7 =
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