示例#1
0
 //! Returns either special value type or is_not_special
 static special_values to_special(int_type v)
 {
   if (is_not_a_number(v)) return not_a_date_time;
   if (is_neg_infinity(v)) return neg_infin;
   if (is_pos_infinity(v)) return pos_infin;
   return not_special;
 }
示例#2
0
 bool is_special()const
 {
   return(is_pos_infinity() || is_neg_infinity() || is_not_a_date_time());
 }
示例#3
0
 //! check to see if date is one of the infinity values
 bool is_infinity()  const
 {
   return (is_pos_infinity() || is_neg_infinity()); 
 }