diff options
author | joye <joye> | 2015-06-25 15:46:42 (GMT) |
---|---|---|
committer | joye <joye> | 2015-06-25 15:46:42 (GMT) |
commit | 945c8cd8efad48786d7fb8c5fcb88ca00c230977 (patch) | |
tree | 4fcbf73146aa081351cb7e64f446d0edd7417808 /src/bltGrPSOutput.C | |
parent | 0a2c6340848a423fd27745507f467c13d73eba98 (diff) | |
download | blt-945c8cd8efad48786d7fb8c5fcb88ca00c230977.zip blt-945c8cd8efad48786d7fb8c5fcb88ca00c230977.tar.gz blt-945c8cd8efad48786d7fb8c5fcb88ca00c230977.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGrPSOutput.C')
-rw-r--r-- | src/bltGrPSOutput.C | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/bltGrPSOutput.C b/src/bltGrPSOutput.C index 8ef802b..6d7f2e1 100644 --- a/src/bltGrPSOutput.C +++ b/src/bltGrPSOutput.C @@ -31,6 +31,7 @@ #include <math.h> #include <stdlib.h> #include <string.h> +#include <time.h> #include "tk.h" @@ -458,16 +459,12 @@ int PSOutput::preamble(const char* fileName) format("%%%%Creator: (%s %s %s)\n", PACKAGE_NAME, PACKAGE_VERSION, Tk_Class(graphPtr_->tkwin_)); - char date[200]; -#ifndef _WIN32 time_t ticks = time((time_t *) NULL); + char date[200]; strcpy(date, ctime(&ticks)); char* newline = date + strlen(date) - 1; if (*newline == '\n') *newline = '\0'; -#else - strcpy(date,"Unknown"); -#endif format("%%%%CreationDate: (%s)\n", date); format("%%%%Title: (%s)\n", fileName); |