Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QV4::Date Struct Reference

#include <qv4dateobject_p.h>

+ Collaboration diagram for QV4::Date:

Public Member Functions

void init ()
 
void init (double value)
 
void init (const QDateTime &dateTime)
 
void init (QDate date)
 
void init (QTime time, ExecutionEngine *engine)
 
Dateoperator= (double value)
 
 operator double () const
 
QDate toQDate () const
 
QTime toQTime () const
 
QDateTime toQDateTime () const
 
QVariant toVariant () const
 
template<typename Function >
bool withStoragePointer (Function function)
 

Static Public Attributes

static constexpr quint64 MaxDateVal = 8.64e15
 

Detailed Description

Definition at line 29 of file qv4dateobject_p.h.

Member Function Documentation

◆ init() [1/5]

void QV4::Date::init ( )
inline

Definition at line 33 of file qv4dateobject_p.h.

◆ init() [2/5]

void Date::init ( const QDateTime & dateTime)

Definition at line 640 of file qv4dateobject.cpp.

References encode.

◆ init() [3/5]

void Date::init ( double value)

Definition at line 635 of file qv4dateobject.cpp.

References encode.

◆ init() [4/5]

void Date::init ( QDate date)

Definition at line 645 of file qv4dateobject.cpp.

References date, encode, QDate::startOfDay(), and QTimeZone::UTC.

+ Here is the call graph for this function:

◆ init() [5/5]

void Date::init ( QTime time,
ExecutionEngine * engine )

Definition at line 650 of file qv4dateobject.cpp.

References d, encode, engine, QTime::hour(), QTime::isValid(), MakeDate(), MakeDay(), MakeTime(), QTime::minute(), QTime::msec(), qt_qnan(), QTime::second(), time, and UTC().

+ Here is the call graph for this function:

◆ operator double()

QV4::Date::operator double ( ) const
inline

Definition at line 45 of file qv4dateobject_p.h.

References MaxDateVal, and qt_qnan().

+ Here is the call graph for this function:

◆ operator=()

Date & QV4::Date::operator= ( double value)
inline

Definition at line 39 of file qv4dateobject_p.h.

References encode.

◆ toQDate()

QDate Date::toQDate ( ) const

Definition at line 676 of file qv4dateobject.cpp.

References QDateTime::date(), and toQDateTime().

Referenced by toVariant(), and withStoragePointer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toQDateTime()

QDateTime Date::toQDateTime ( ) const

Definition at line 686 of file qv4dateobject.cpp.

References QTimeZone::LocalTime, and ToDateTime().

Referenced by toQDate(), toQTime(), toVariant(), and withStoragePointer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toQTime()

QTime Date::toQTime ( ) const

Definition at line 681 of file qv4dateobject.cpp.

References QDateTime::time(), and toQDateTime().

Referenced by toVariant(), and withStoragePointer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toVariant()

QVariant Date::toVariant ( ) const

Definition at line 691 of file qv4dateobject.cpp.

References toQDate(), toQDateTime(), and toQTime().

+ Here is the call graph for this function:

◆ withStoragePointer()

template<typename Function >
bool QV4::Date::withStoragePointer ( Function function)
inline

Definition at line 63 of file qv4dateobject_p.h.

References date, dateTime, function, time, toQDate(), toQDateTime(), and toQTime().

+ Here is the call graph for this function:

Member Data Documentation

◆ MaxDateVal

constexpr quint64 QV4::Date::MaxDateVal = 8.64e15
staticconstexpr

Definition at line 31 of file qv4dateobject_p.h.

Referenced by operator double(), and TimeClip().


The documentation for this struct was generated from the following files: