System.h
1 /*
2  * Medical Image Registration ToolKit (MIRTK)
3  *
4  * Copyright 2016 Imperial College London
5  * Copyright 2016 Andreas Schuh
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 
20 #ifndef MIRTK_System_H
21 #define MIRTK_System_H
22 
23 #include "mirtk/String.h"
24 
25 
26 namespace mirtk {
27 
28 
29 /// Get current date in the format "%d %b %Y"
30 /// @sa std::put_time
31 string GetDate();
32 
33 /// Get current time in the format "%H:%M:%S %Z"
34 /// @sa std::put_time
35 string GetTime();
36 
37 /// Get current date and time in the format "%c %Z"
38 /// @sa std::put_time
39 string GetDateTime();
40 
41 /// Get name of user executing this program
42 string GetUser();
43 
44 
45 } // namespace mirtk
46 
47 #endif // MIRTK_System_H
string GetDate()
Definition: IOConfig.h:41
string GetDateTime()
string GetTime()
string GetUser()
Get name of user executing this program.