Commit 43e7e8b7 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

set doy explicitely

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 1440
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 0b61e2e6
/* this is <libtime++.h>
* ----------------------------------------------------------------------------
*
* $Id: libtime++.h,v 2.9 2003-12-22 11:56:36 tforb Exp $
* $Id: libtime++.h,v 2.10 2003-12-30 17:23:05 tforb Exp $
*
* Copyright (c) by Thomas Forbriger (IfG Stuttgart)
*
......@@ -18,13 +18,15 @@
* with system time library)
* 22/12/2003 V1.5 added function now()
* 22/12/2003 V1.6 whooo - was a bit sloppy - corrected some errors
* 27/12/2003 V1.7 added member function of TAbsoluteTime to
* set doy explicitely
*
* ============================================================================
*/
#ifndef TF_LIBTIME_H_
#define TF_LIBTIME_H_ \
"$Id: libtime++.h,v 2.9 2003-12-22 11:56:36 tforb Exp $";
"$Id: libtime++.h,v 2.10 2003-12-30 17:23:05 tforb Exp $";
#include <string>
#include "libtime.h"
......@@ -88,6 +90,7 @@ class TAbsoluteTime: public TBaseClassTime {
const long int &minute=0, const long int &second=0,
const long int &milsec=0, const long int &micsec=0);
void setdoy(const long int &doy);
void setdoy(const long int &day, const long int &month);
void setdate(const long int &day, const long int &month);
void getdate(long int &day, long int &month) const;
......@@ -237,6 +240,9 @@ inline TAbsoluteTime::TAbsoluteTime(const long int &year,
TBaseClassTime(year, 1, hour, minute, second, milsec, micsec)
{ time_kernel::time_fullyear(&Mtime_Ts.year); setdate(day, month); norm(); }
inline void TAbsoluteTime::setdoy(const long int &doy)
{ Mtime_Ts.doy=doy; this->norm(); }
inline void TAbsoluteTime::setdoy(const long int &day, const long int &month)
{ time_kernel::time_setdoy(day, month, &Mtime_Ts); }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment