Commit 607753e0 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

correction

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: 1421
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent eb31f0ad
/* this is <base_constr.cc>
* ----------------------------------------------------------------------------
*
* $Id: base_constr.cc,v 1.5 2003-12-22 09:08:57 tforb Exp $
* $Id: base_constr.cc,v 1.6 2003-12-22 13:23:40 tforb Exp $
*
* 09/08/2000 by Thomas Forbriger (IfG Stuttgart)
*
......@@ -13,6 +13,7 @@
* 22/12/2000 V1.2 changed namespace time to libtime (resolved conflict
* with system time library)
* 22/12/2003 V1.3 added function now()
* correction: month in struct tm is in (0,11)
*
* ============================================================================
*/
......@@ -46,7 +47,7 @@ TAbsoluteTime now()
std::time_t nowtime=std::time(NULL);
std::tm *nowtm=std::localtime(&nowtime);
int year=nowtm->tm_year+1900;
int month=nowtm->tm_mon;
int month=nowtm->tm_mon+1;
int day=nowtm->tm_mday;
int hour=nowtm->tm_hour;
int minute=nowtm->tm_min;
......
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