分享

SADateTime

 322yangxinxing 2012-02-15
Home How To Online Documentation Support Download Order

 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric
SAInterval

Enums and Typedefs


Usage

Examples

SADateTime

Construction / Destruction

SADateTime Constructs a SADateTime object

Methods

GetYear Returns the year this SADateTime object represents.
GetMonth Returns the month this SADateTime object represents (1 – 12).
GetDay Returns the day this SADateTime object represents (1 – 31).
GetHour Returns the hour this SADateTime object represents (0 – 23).
GetMinute Returns the minute this SADateTime object represents (0 – 59).
GetSecond Returns the second this SADateTime object represents (0 – 59).
GetDayOfWeek Returns the day of the week this SADateTime object represents (Sunday = 1).
GetDayOfYear Returns the day of the year this SADateTime object represents (Jan 1 = 1).
Fraction Returns the value of the fraction of second (0 to 999,999,999) this SADateTime object represents.
GetTimeValue Sets the standard C structure to the date/time value this SADateTime object represents.
currentDateTime Creates a SADateTime object that represents the current time (static member function).
currentDateTimeWithFraction Creates a SADateTime object that represents the current time with fraction (static member function).

Operators

operator struct tm This operator returns a struct tm object whose value is copied from this SADateTime object.
operator double This operator returns a double (DATE in Windows) value whose value is calculated from this SADateTime object.
operator SAString
Returns a representation of the SADateTime object as a string value in 'YYYY-MM-DDTHH:MI:SS' format.
SADateTime operator+(SAInterval interval) const
SADateTime operator-(SAInterval interval) const
SADateTime& operator+=(SAInterval interval)
SADateTime& operator-=(SAInterval interval)

SAInterval operator-(const SADateTime& dt) const
Arithmetic operators - return SAInterval object.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多