src/Date.cpp
/*!
    Converts this date to julian day.

    If this date is invalid, returns 0;
*/
Converts this date to julian day.
If this date is invalid, returns 0.
Converts this date to julian day . If this date is invalid returns 0 .
std::int64_t Date::toJulianDay() const
{
    if (isValid())
        return julianDayFromDate(m_dt.year, m_dt.mon, m_dt.mday);
    else
        return 0;
}
std :: int64_t Date :: toJulianDay ( ) const { if ( isValid ( ) ) return julianDayFromDate ( m_dt . year , m_dt . mon , m_dt . mday ) ; else return 0 ; }
Converts this date to julian day.
Converts this date to julian day .