StelUtils.hpp   StelUtils.hpp 
skipping to change at line 231 skipping to change at line 231
//! Return the inverse sinus hyperbolic of z. //! Return the inverse sinus hyperbolic of z.
double asinh(const double z); double asinh(const double z);
/////////////////////////////////////////////////// ///////////////////////////////////////////////////
// New Qt based General Calendar Functions. // New Qt based General Calendar Functions.
//! Make from julianDay a year, month, day for the Julian Date julia nDay represents. //! Make from julianDay a year, month, day for the Julian Date julia nDay represents.
void getDateFromJulianDay(const double julianDay, int *year, int *mo nth, int *day); void getDateFromJulianDay(const double julianDay, int *year, int *mo nth, int *day);
//! Make from julianDay an hour, minute, second. //! Make from julianDay an hour, minute, second.
void getTimeFromJulianDay(const double julianDay, int *hour, int *mi nute, int *second); void getTimeFromJulianDay(const double julianDay, int *hour, int *mi nute, int *second, int *millis=NULL);
//! Parse an ISO8601 date string. //! Parse an ISO8601 date string.
//! Also handles negative and distant years. //! Also handles negative and distant years.
bool getDateTimeFromISO8601String(const QString& iso8601Date, int* y , int* m, int* d, int* h, int* min, float* s); bool getDateTimeFromISO8601String(const QString& iso8601Date, int* y , int* m, int* d, int* h, int* min, float* s);
//! Format the given Julian Day in (UTC) ISO8601 date string. //! Format the given Julian Day in (UTC) ISO8601 date string.
//! Also handles negative and distant years. //! Also handles negative and distant years.
QString julianDayToISO8601String(const double jd); QString julianDayToISO8601String(const double jd, bool addMS = false );
//! Return the Julian Date matching the ISO8601 date string. //! Return the Julian Date matching the ISO8601 date string.
//! Also handles negative and distant years. //! Also handles negative and distant years.
double getJulianDayFromISO8601String(const QString& iso8601Date, boo l* ok); double getJulianDayFromISO8601String(const QString& iso8601Date, boo l* ok);
//! Format the date and day-of-week per the format in fmt //! Format the date and day-of-week per the format in fmt
//! (see QDateTime::toString()). Uses the @b system locale, not //! (see QDateTime::toString()). Uses the @b system locale, not
//! the one set in Stellarium. //! the one set in Stellarium.
//! @return QString representing the formatted date //! @return QString representing the formatted date
QString localeDateString(const int year, const int month, const int day, const int dayOfWeek, const QString &fmt); QString localeDateString(const int year, const int month, const int day, const int dayOfWeek, const QString &fmt);
skipping to change at line 658 skipping to change at line 658
//! @param minAngle start angle inside the half-circle. maxAngle=min Angle+segments*phi //! @param minAngle start angle inside the half-circle. maxAngle=min Angle+segments*phi
float* ComputeCosSinRhoZone(const float dRho, const int segments, co nst float minAngle); float* ComputeCosSinRhoZone(const float dRho, const int segments, co nst float minAngle);
//! Compute date in decimal year format //! Compute date in decimal year format
//! @param year //! @param year
//! @param month //! @param month
//! @param day //! @param day
//! @return decimal year //! @return decimal year
double getDecYear(const int year, const int month, const int day); double getDecYear(const int year, const int month, const int day);
//! Comparison two string versions and return a result in range -1,0
,1
//! @param v1 string for version 1
//! @param v2 string for version 2
//! @return result (-1: v1<v2; 0: v1==v2; 1: v1>v2)
int compareVersions(const QString v1, const QString v2);
//! Uncompress gzip or zlib compressed data. //! Uncompress gzip or zlib compressed data.
QByteArray uncompress(const QByteArray& data); QByteArray uncompress(const QByteArray& data);
//! Uncompress (gzip/zlib) data from this QIODevice, which must be o pen and readable. //! Uncompress (gzip/zlib) data from this QIODevice, which must be o pen and readable.
//! @param device The device to read from, must already be opened wi th an OpenMode supporting reading //! @param device The device to read from, must already be opened wi th an OpenMode supporting reading
//! @param maxBytes The max. amount of bytes to read from the device , or -1 to read until EOF. Note that it //! @param maxBytes The max. amount of bytes to read from the device , or -1 to read until EOF. Note that it
//! always stops when inflate() returns Z_STREAM_END. Positive value s can be used for interleaving compressed data //! always stops when inflate() returns Z_STREAM_END. Positive value s can be used for interleaving compressed data
//! with other data. //! with other data.
QByteArray uncompress(QIODevice &device, qint64 maxBytes=-1); QByteArray uncompress(QIODevice &device, qint64 maxBytes=-1);
 End of changes. 3 change blocks. 
2 lines changed or deleted 9 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/