Epoch time stamp calculation

Version 2

     

    Calculation

     

    Compatibility
    Creator
    Mac OS X, Windows
    Tom Jenkinson
    FMP 8.5, 9, 10, 11
    Allied Business Solutions
    Web: Yes
    File Type: None
    Server: Yes
    FileSize: 0 kilobytes
    http://www.absolutions.co.uk

    Description

    Calculates the epoch standard timestamp for a given time and date

     


    Code
    (((((((Year ( DateField ) - 1970) * 365) + Int ( (Year ( DateField ) ) - 1970) / 4 )) + DayOfYear ( DateField )) * 24) * 60) * 60) + (((Hour ( TimeField ) ) * 60) + Minute ( TimeField ) )) * 60) + Seconds ( TimeField ) )

     

    Sample Input

    Sample Output
    TimeField = 18:22:30 DateField = 15/06/2009

    1245090150

    Developer's Notes

    Calculation Result is a number

     


    FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.