CGEM BOSS
6.6.5.f
BESIII Offline Software System
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
Enumerations
_
e
f
g
h
i
l
m
o
p
r
s
t
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
Enumerations
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
w
x
Files
File List
File Members
All
!
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
!
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
!
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
Enumerations
d
e
g
h
p
r
s
t
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
DateAndTime.cxx
Go to the documentation of this file.
1
//Dear emacs, this is -*- c++ -*-
2
3
/**
4
* @file DateAndTime.cxx
5
* @author <a href="mailto:Andre.dos.Anjos@cern.ch">Andre DOS ANJOS</a>
6
* $Author: zhangy $
7
* $Revision: 1.1.1.1 $
8
* $Date: 2009/06/19 07:35:41 $
9
*
10
* Implements date and time interpretation
11
*/
12
13
#include "eformat/DateAndTime.h"
14
#include <ctime>
15
16
eformat::helper::DateAndTime::DateAndTime
()
17
: m_val(
time
(0))
18
{
19
}
20
21
eformat::helper::DateAndTime::DateAndTime
(uint32_t val)
22
: m_val(val)
23
{
24
}
25
26
std::string
eformat::helper::DateAndTime::iso8601
(
void
)
const
27
{
28
struct
tm
t
;
29
time_t val = code();
30
gmtime_r(&val, &
t
);
31
char
buf[100];
32
strftime(buf, 100,
"%Y-%m-%dT%H:%M:%SZ"
, &
t
);
33
return
buf;
34
}
35
36
std::string
eformat::helper::DateAndTime::human
(
void
)
const
37
{
38
struct
tm
t
;
39
time_t val = code();
40
gmtime_r(&val, &
t
);
41
char
buf[100];
42
strftime(buf, 100,
"%a, %d %b %Y %H:%M:%S UTC"
, &
t
);
43
return
buf;
44
}
time
Double_t time
Definition:
DataBase/tau_mode.c:7
eformat::helper::DateAndTime::iso8601
std::string iso8601(void) const
Definition:
DateAndTime.cxx:26
eformat::helper::DateAndTime::DateAndTime
DateAndTime()
Definition:
DateAndTime.cxx:16
eformat::helper::DateAndTime::human
std::string human(void) const
Definition:
DateAndTime.cxx:36
t
int t()
Definition:
t.c:1
source
Event
eformat
eformat-00-00-04
src
DateAndTime.cxx
Generated by
1.9.6