// preamble
if (flags.write_preamble)
{
- std::time_t time1= std::time (0);
- std::tm *time = std::localtime(&time1);
out << "# This file was generated by the deal.II library." << '\n'
- << "# Date = "
- << time->tm_year+1900 << "/"
- << time->tm_mon+1 << "/"
- << time->tm_mday << '\n'
- << "# Time = "
- << time->tm_hour << ":"
- << std::setw(2) << time->tm_min << ":"
- << std::setw(2) << time->tm_sec << '\n'
+ << "# Date = " << Utilities::System::get_date() << "\n"
+ << "# Time = " << Utilities::System::get_time() << "\n"
<< "#" << '\n'
<< "# For a description of the UCD format see the AVS Developer's guide."
<< '\n'
if (true)
{
- std::time_t time1= std::time (0);
- std::tm *time = std::localtime(&time1);
out << "attribute \"created\" string \""
- << time->tm_year+1900 << "/"
- << time->tm_mon+1 << "/"
- << time->tm_mday
+ << Utilities::System::get_date()
<< ' '
- << time->tm_hour << ":"
- << std::setw(2) << time->tm_min << ":"
- << std::setw(2) << time->tm_sec << '"' << '\n';
+ << Utilities::System::get_time() << '"' << '\n';
}
out << "end" << '\n';
// block this to have local
// variables destroyed after
// use
- const std::time_t time1= std::time (0);
- const std::tm *time = std::localtime(&time1);
out << "# This file was generated by the deal.II library." << '\n'
- << "# Date = "
- << time->tm_year+1900 << "/"
- << time->tm_mon+1 << "/"
- << time->tm_mday << '\n'
- << "# Time = "
- << time->tm_hour << ":"
- << std::setw(2) << time->tm_min << ":"
- << std::setw(2) << time->tm_sec << '\n'
+ << "# Date = " << Utilities::System::get_date() << '\n'
+ << "# Time = " << Utilities::System::get_time() << '\n'
<< "#" << '\n'
<< "# For a description of the GNUPLOT format see the GNUPLOT manual."
<< '\n'
{
// block this to have local
// variables destroyed after use
- const std::time_t time1= std::time (0);
- const std::tm *time = std::localtime(&time1);
out << "/* This file was generated by the deal.II library." << '\n'
- << " Date = "
- << time->tm_year+1900 << "/"
- << time->tm_mon+1 << "/"
- << time->tm_mday << '\n'
- << " Time = "
- << time->tm_hour << ":"
- << std::setw(2) << time->tm_min << ":"
- << std::setw(2) << time->tm_sec << '\n'
+ << " Date = " << Utilities::System::get_date() << '\n'
+ << " Time = " << Utilities::System::get_time() << '\n'
<< '\n'
<< " For a description of the POVRAY format see the POVRAY manual."
<< '\n'
// block this to have local
// variables destroyed after
// use
- std::time_t time1= std::time (0);
- std::tm *time = std::localtime(&time1);
out << "%!PS-Adobe-2.0 EPSF-1.2" << '\n'
<< "%%Title: deal.II Output" << '\n'
<< "%%Creator: the deal.II library" << '\n'
<< "%%Creation Date: "
- << time->tm_year+1900 << "/"
- << time->tm_mon+1 << "/"
- << time->tm_mday << " - "
- << time->tm_hour << ":"
- << std::setw(2) << time->tm_min << ":"
- << std::setw(2) << time->tm_sec << '\n'
+ << Utilities::System::get_date()
+ << " - "
+ << Utilities::System::get_time() << '\n'
<< "%%BoundingBox: "
// lower left corner
<< "0 0 "
///////////
// preamble
{
- std::time_t time1= std::time (0);
- std::tm *time = std::localtime(&time1);
out << "# This file was generated by the deal.II library." << '\n'
- << "# Date = "
- << time->tm_year+1900 << "/"
- << time->tm_mon+1 << "/"
- << time->tm_mday << '\n'
- << "# Time = "
- << time->tm_hour << ":"
- << std::setw(2) << time->tm_min << ":"
- << std::setw(2) << time->tm_sec << '\n'
+ << "# Date = " << Utilities::System::get_date() << '\n'
+ << "# Time = " << Utilities::System::get_time() << '\n'
<< "#" << '\n'
<< "# For a description of the Tecplot format see the Tecplot documentation."
<< '\n'
///////////////////////
// preamble
{
- std::time_t time1= std::time (0);
- std::tm *time = std::localtime(&time1);
out << "# vtk DataFile Version 3.0"
<< '\n'
<< "#This file was generated by the deal.II library";
if (flags.print_date_and_time)
- out << " on "
- << time->tm_year+1900 << "/"
- << time->tm_mon+1 << "/"
- << time->tm_mday << " at "
- << time->tm_hour << ":"
- << std::setw(2) << time->tm_min << ":"
- << std::setw(2) << time->tm_sec;
+ {
+ out << " on " << Utilities::System::get_date()
+ << " at " << Utilities::System::get_time();
+ }
else
out << ".";
out << '\n'
const VtkFlags &flags)
{
AssertThrow (out, ExcIO());
- std::time_t time1= std::time (0);
- std::tm *time = std::localtime(&time1);
out << "<?xml version=\"1.0\" ?> \n";
out << "<!-- \n";
out << "# vtk DataFile Version 3.0"
<< '\n'
<< "#This file was generated by the deal.II library";
if (flags.print_date_and_time)
- out << " on "
- << time->tm_year+1900 << "/"
- << time->tm_mon+1 << "/"
- << time->tm_mday << " at "
- << time->tm_hour << ":"
- << std::setw(2) << time->tm_min << ":"
- << std::setw(2) << time->tm_sec;
+ {
+ out << " on " << Utilities::System::get_time()
+ << " at " << Utilities::System::get_date();
+ }
else
out << ".";
out << "\n-->\n";
out << "<?xml version=\"1.0\"?>\n";
- std::time_t time1= std::time (0);
- std::tm *time = std::localtime(&time1);
out << "<!--\n";
- out << "#This file was generated by the deal.II library on "
- << time->tm_year+1900 << "/"
- << time->tm_mon+1 << "/"
- << time->tm_mday << " at "
- << time->tm_hour << ":"
- << std::setw(2) << time->tm_min << ":"
- << std::setw(2) << time->tm_sec
+ out << "#This file was generated by the deal.II library"
+ << " on " << Utilities::System::get_date()
+ << " at " << Utilities::System::get_time()
<< "\n-->\n";
out << "<VTKFile type=\"Collection\" version=\"0.1\" ByteOrder=\"LittleEndian\">\n";
out << "<?xml version=\"1.0\"?>\n";
- std::time_t time1= std::time (0);
- std::tm *time = std::localtime(&time1);
out << "<!--\n";
- out << "#This file was generated by the deal.II library on "
- << time->tm_year+1900 << "/"
- << time->tm_mon+1 << "/"
- << time->tm_mday << " at "
- << time->tm_hour << ":"
- << std::setw(2) << time->tm_min << ":"
- << std::setw(2) << time->tm_sec
+ out << "#This file was generated by the deal.II library"
+ << " on " << Utilities::System::get_date()
+ << " at " << Utilities::System::get_time()
<< "\n-->\n";
out << "<VTKFile type=\"PUnstructuredGrid\" version=\"0.1\" byte_order=\"LittleEndian\">\n";