Difference between revisions of "Date and Time Tips"

From FM Plugin Wikipedia
Jump to: navigation, search
(Date Public Functions)
m
 
(5 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
This page is about editing and working with Dates and Times passed from FileMaker to your plugin.
 
This page is about editing and working with Dates and Times passed from FileMaker to your plugin.
  
=DateTimeStamp Public Functions=
+
All functions that refer to the Epoch are referring to FileMaker's reference date of 1/1/0001 12:00:00 AM.
[[bool operator == ( const DateTime &that ) const]]
 
  
[[bool operator != ( const DateTime &that ) const]]
+
=DateTime Public Functions=
 +
*[[bool operator == ( const DateTime &that ) const]]
 +
*[[bool operator != ( const DateTime &that ) const]]
 +
*[[bool IsLeapYear () const]]
 +
*[[short DayOfWeek () const]]
 +
*[[short DayOfYear () const]]
 +
*[[short WeekOfYear () const]]
 +
*[[void Now ()]]
 +
*[[void SetDate ( const DateTime &datetime )]]
 +
*[[errcode SetNormalizedDate ( short month, short day, short year )]]
 +
*[[errcode SetNormalizedDate ( const FixPt &year, const FixPt &month, const FixPt &day )]]
 +
*[[void SetDaysSinceEpoch ( longlong days )]]
 +
*[[void SetTime ( const DateTime &datetime )]]
 +
*[[errcode SetNormalizedTime ( longlong hour, short minute, short sec, long int usec = 0 )]]
 +
*[[errcode SetNormalizedTime ( const FixPt &hour, const FixPt &minute, const FixPt &sec )]]
 +
*[[void SetSecsSinceMidnight ( const FixPt &secs )]]
 +
*[[void SetSecondsSinceEpoch ( const FixPt &seconds )]]
 +
*[[short GetYear () const]]
 +
*[[short GetMonth () const]]
 +
*[[short GetDay () const]]
 +
*[[long int GetDaysSinceEpoch () const]]
 +
*[[long int GetHour () const]]
 +
*[[short GetMinute () const]]
 +
*[[short GetSec () const]]
 +
*[[long int GetUSec () const]]
 +
*[[void GetSeconds ( FixPt &results ) const]]
 +
*[[void GetSecsSinceMidnight ( FixPt &results ) const]]
 +
*[[void GetSecondsSinceEpoch ( FixPt &results ) const]]
 +
*[[void operator delete ( void *obj )]]
  
[[bool IsLeapYear () const]]
+
=Example DateTime Functions=
 
 
[[short DayOfWeek () const]]
 
 
 
[[short DayOfYear () const]]
 
 
 
[[short WeekOfYear () const]]
 
 
 
[[void Now ()]]
 
 
 
[[void SetDate ( const DateTime &datetime )]]
 
 
 
[[errcode SetNormalizedDate ( short month, short day, short year )]]
 
 
 
[[errcode SetNormalizedDate ( const FixPt &year, const FixPt &month, const FixPt &day )]]
 
 
 
[[void SetDaysSinceEpoch ( longlong days )]]
 
 
 
[[void SetTime ( const DateTime &datetime )]]
 
 
 
[[errcode SetNormalizedTime ( longlong hour, short minute, short sec, long int usec = 0 )]]
 
 
 
[[errcode SetNormalizedTime ( const FixPt &hour, const FixPt &minute, const FixPt &sec )]]
 
 
 
[[void SetSecsSinceMidnight ( const FixPt &secs )]]
 
 
 
[[void SetSecondsSinceEpoch ( const FixPt &seconds )]]
 
 
 
[[short GetYear () const]]
 
 
 
[[short GetMonth () const]]
 
 
 
[[short GetDay () const]]
 
 
 
[[long int GetDaysSinceEpoch () const]]
 
 
 
[[long int GetHour () const]]
 
 
 
[[short GetMinute () const]]
 
 
 
[[short GetSec () const]]
 
 
 
[[long int GetUSec () const]]
 
 
 
[[void GetSeconds ( FixPt &results ) const]]
 
 
 
[[void GetSecsSinceMidnight ( FixPt &results ) const]]
 
 
 
[[void GetSecondsSinceEpoch ( FixPt &results ) const]]
 
 
 
[[void operator delete ( void *obj )]]
 
 
 
=Date Public Functions=
 
 
 
[[bool IsEmpty () const]]
 
 
 
[[bool IsValid () const]]
 
 
 
[[bool IsFindRequest () const]]
 
 
 
[[void Clear ( DataType newNativeType = kDTInvalid )]]
 
 
 
[[const Text &GetAsText () const;;
 
 
 
[[const FixPt &GetAsNumber () const]]
 
 
 
[[const DateTime &GetAsDate () const]]
 
 
 
[[const DateTime &GetAsTime () const]]
 
 
 
[[const DateTime &GetAsTimeStamp () const]]
 
 
 
[[bool GetAsBoolean () const]]
 
 
 
[[const BinaryData &GetBinaryData () const]]
 
 
 
[[const Locale &GetLocale () const]]
 
 
 
[[const DataType GetNativeType () const]]
 
 
 
[[void ConvertData ( DataType nativeType )]]
 
 
 
[[errcode SetAsText ( const Text &textData, const Locale &sourceLocale, const DataType nativeType = kDTText )]]
 
 
 
[[void SetAsNumber ( const FixPt &numericData, const DataType nativeType = kDTNumber )]]
 
 
 
[[void SetAsDate ( const DateTime &dateData, const DataType nativeType = kDTDate )]]
 
 
 
[[void SetAsTime ( const DateTime &timeData, const DataType nativeType = kDTTime )]]
 
 
 
[[void SetAsTimeStamp ( const DateTime &timeStampData, const DataType nativeType = kDTTimeStamp )]]
 
 
 
[[void SetDateTime ( const DateTime &dateTimeData, const DataType dateTimeType, const DataType nativeType )]]
 
 
 
[[void SetBinaryData ( const BinaryData &binaryData, bool forceBinaryNativeType = true )]]
 
 
 
[[void operator delete ( void *obj )]]
 
 
 
=Time Public Functions=
 

Latest revision as of 05:06, 17 August 2007

This page is about editing and working with Dates and Times passed from FileMaker to your plugin.

All functions that refer to the Epoch are referring to FileMaker's reference date of 1/1/0001 12:00:00 AM.

DateTime Public Functions

Example DateTime Functions