OpendTect-6_4  6.4
timefun.h
Go to the documentation of this file.
1 #ifndef timefun_h
2 #define timefun_h
3 
4 /*@+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H.Bril
9  Date: 3-5-1994
10  Contents: Time functions
11  RCS: $Id$
12 ________________________________________________________________________
13 
14 -*/
15 
16 #include "basicmod.h"
17 #include "gendefs.h"
18 
19 mFDQtclass(QTime)
20 
21 namespace Time
22 {
23 
25  {
26  public:
27 
28  Counter();
29  ~Counter();
30  void start();
31  int restart();
32  int elapsed() const;
33 
34  protected:
35 
36  mQtclass(QTime*) qtime_;
37 
38  };
39 
40 
41  mGlobal(Basic) int getMilliSeconds();
42  mGlobal(Basic) int passedSince(int);
43 
44 
45  mGlobal(Basic) const char* defDateTimeFmt();
46  mGlobal(Basic) const char* defDateTimeTzFmt();
47  mGlobal(Basic) const char* defDateFmt();
48  mGlobal(Basic) const char* defTimeFmt();
49 
50  mGlobal(Basic) const char* getDateTimeString(const char* fmt
51  =defDateTimeFmt(),bool local=true);
52  mGlobal(Basic) const char* getDateString(const char* fmt=defDateFmt(),
53  bool local=true);
54  mGlobal(Basic) const char* getTimeString(const char* fmt=defTimeFmt(),
55  bool local=true);
56 
57  mGlobal(Basic) bool isEarlier(const char* first, const char* second,
58  const char* fmt=defDateTimeFmt());
63 } // namespace Time
64 
65 
66 #endif
#define mExpClass(module)
Definition: commondefs.h:160
const char * defDateFmt()
const char * defDateTimeFmt()
#define mQtclass(cls)
Definition: commondefs.h:229
int passedSince(int)
const char * defTimeFmt()
#define mGlobal(module)
Definition: commondefs.h:163
const char * defDateTimeTzFmt()
With time zone.
const char * getTimeString(const char *fmt=defTimeFmt(), bool local=true)
const char * getDateTimeString(const char *fmt=defDateTimeFmt(), bool local=true)
Definition: timefun.h:24
#define mFDQtclass(cls)
Definition: commondefs.h:228
int getMilliSeconds()
From day start.
Definition: timefun.h:21
const char * getDateString(const char *fmt=defDateFmt(), bool local=true)
bool isEarlier(const char *first, const char *second, const char *fmt=defDateTimeFmt())

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019