Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/giza-pp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'GIZA++-v2/file_spec.h')
-rw-r--r--GIZA++-v2/file_spec.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/GIZA++-v2/file_spec.h b/GIZA++-v2/file_spec.h
index 54fbb25..3f56e31 100644
--- a/GIZA++-v2/file_spec.h
+++ b/GIZA++-v2/file_spec.h
@@ -43,9 +43,10 @@ char *Get_File_Spec (){
t = time(NULL);
local = localtime(&t);
- sprintf(time_stmp, "%04d-%02d-%02d.%02d%02d%02d.", 1900 + local->tm_year,
- (local->tm_mon + 1), local->tm_mday, local->tm_hour,
- local->tm_min, local->tm_sec);
+ // sprintf(time_stmp, "%04d-%02d-%02d.%02d%02d%02d.", 1900 + local->tm_year,
+ // (local->tm_mon + 1), local->tm_mday, local->tm_hour,
+ // local->tm_min, local->tm_sec);
+ strftime(time_stmp, 19, "%Y-%m-%d.%H%M%S.", local);
user = getenv("USER");
file_spec = (char *)malloc(sizeof(char) *