File indexing completed on 2024-12-22 04:17:19
0001 /*************************************************************************** 0002 * * 0003 * copyright : (C) 2005 The University of Toronto * 0004 * netterfield@astro.utoronto.ca * 0005 * * 0006 * This program is free software; you can redistribute it and/or modify * 0007 * it under the terms of the GNU General Public License as published by * 0008 * the Free Software Foundation; either version 2 of the License, or * 0009 * (at your option) any later version. * 0010 * * 0011 ***************************************************************************/ 0012 0013 #ifndef DATEPARSER_H 0014 #define DATEPARSER_H 0015 0016 #include <QTime> 0017 #include <QDate> 0018 #include <QDateTime> 0019 #include "kst_export.h" 0020 0021 /* This is a public header */ 0022 namespace Kst { 0023 /* 0024 All times represented as doubles are the number of milliseconds since Jan 01 0025 1970 00:00:00. Negative times are before then. 0026 */ 0027 KSTCORE_EXPORT extern QDateTime parsePlanckDate(const QString& dateString); 0028 KSTCORE_EXPORT extern double extDateTimeToMilliseconds(const QDateTime& edt); 0029 KSTCORE_EXPORT extern QDateTime millisecondsToQDateTime(double ms); 0030 } 0031 0032 #endif 0033 // vim: ts=2 sw=2 et