-/* $Id$ */
+/* $Id$
+
+This file is part of libmspcore
+Copyright © 2006 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
#include <cstdlib>
#include <sstream>
#include <iomanip>
TimeStamp DateTime::get_timestamp() const
{
if(year<-289701 || year>293641)
- throw Exception("DateTime is not representable as a TimeStamp");
+ throw InvalidState("DateTime is not representable as a TimeStamp");
RawTime raw=(((hour*60LL)+minute)*60+second)*1000000+usec;
int days=(year-1970)*365;