KASKADE 7 development version
date_and_time.hh
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2/* */
3/* This file is part of the library KASKADE 7 */
4/* https://www.zib.de/research/projects/kaskade7-finite-element-toolbox */
5/* */
6/* Copyright (C) 2002-2011 Zuse Institute Berlin */
7/* */
8/* KASKADE 7 is distributed under the terms of the ZIB Academic License. */
9/* see $KASKADE/academic.txt */
10/* */
11/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
12
13#ifndef DATE_AND_TIME_HH_
14#define DATE_AND_TIME_HH_
15
16#include <string>
17
18namespace Kaskade
19{
20// std::vector<const char[4]> months = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
21// //std::vector<const char[3]> numericalMonths = { "01", "02" };
22//
23//
24// std::string numericalMonth(std::string const& month);
25//
26// std::string replaceMonth(std::string const& str);
27
28 std::string getDateAndTime();
29
30 std::string getDate();
31
32// std::string getNumDate();
33
35 std::string& appendDateAndTime(std::string& str);
36
38 std::string& appendDate(std::string& str);
39}
40#endif
std::string getDate()
std::string & appendDateAndTime(std::string &str)
append current time and date to string str
std::string getDateAndTime()
std::string & appendDate(std::string &str)
append current date to string str