summaryrefslogtreecommitdiff
path: root/inc/Quantity_Date.lxx
blob: 092e41bd5f3395316f708bb5fb6434ebd1bb86e2 (plain)
1
2
3
4
5
inline Standard_Boolean Quantity_Date::IsLeap (const Standard_Integer yy){

return ( ( (yy % 4 == 0 && yy % 100 != 0) || yy % 400 == 0) 
         ? Standard_True : Standard_False );
}