summaryrefslogtreecommitdiff
path: root/src/bin/date.c
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-12 09:39:24 +0100
committerGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-12 09:39:24 +0100
commitce4a3e44b0f399d11378f29fdc6d4b953b4ae7eb (patch)
tree16700cabd28e975e42b2f92a497d9a1e680b8333 /src/bin/date.c
parenta94d2fa076292619b8cd569307f73fa84562b4e3 (diff)
Change copyright.
ASP64 no more exists and i am the only guy working on it (well i havent since 2 years i am going to soon).
Diffstat (limited to 'src/bin/date.c')
-rw-r--r--src/bin/date.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/date.c b/src/bin/date.c
index e39af8a..44e0857 100644
--- a/src/bin/date.c
+++ b/src/bin/date.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright © 2011 ASP64 <guillaume.friloux@asp64.com> 2 * Copyright © 2013 Guillaume Friloux <kuri@efl.so>
3 * 3 *
4 * This program is free software: you can redistribute it and/or modify 4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by 5 * it under the terms of the GNU General Public License as published by
@@ -8,7 +8,7 @@
8 * 8 *
9 * This program is distributed in the hope that it will be useful, 9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
@@ -19,7 +19,7 @@
19/** 19/**
20 * @file date.c 20 * @file date.c
21 * @brief Gets us the current date, like logstash does 21 * @brief Gets us the current date, like logstash does
22 * @author Guillaume Friloux <guillaume.friloux@asp64.com> 22 * @author Guillaume Friloux <kuri@efl.so>
23 * @version 1.0 23 * @version 1.0
24 * 24 *
25 * Gets us the current date, like logstash does 25 * Gets us the current date, like logstash does
@@ -41,7 +41,7 @@ char * timestamp_XML(char * date)
41 time_t temps; 41 time_t temps;
42 struct tm temp; 42 struct tm temp;
43 temps=time(NULL); 43 temps=time(NULL);
44 localtime_r(&temps,&temp); 44 localtime_r(&temps,&temp);
45 sprintf(date,"%04d-%02d-%02dT%02d:%02d:%02d.000000Z",(temp.tm_year)+1900,(temp.tm_mon)+1,temp.tm_mday,temp.tm_hour,temp.tm_min,temp.tm_sec); 45 sprintf(date,"%04d-%02d-%02dT%02d:%02d:%02d.000000Z",(temp.tm_year)+1900,(temp.tm_mon)+1,temp.tm_mday,temp.tm_hour,temp.tm_min,temp.tm_sec);
46 return(date); 46 return(date);
47} 47}