-
Notifications
You must be signed in to change notification settings - Fork 1
/
jTime.c
32 lines (26 loc) · 1.19 KB
/
jTime.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* ========================================================================
pDE: Parallel version of Storn and Price's Differential evolution
applied to NEURON modeling
c2005 Jose Ambros-Ingerson [email protected]
$Date: 2006/07/06 15:11:22 $ $Log: jTime.c,v $
$Date: 2006/07/06 15:11:22 $ Revision 1.4 2006/07/06 15:11:22 jose
$Date: 2006/07/06 15:11:22 $ fixed error in added include jLib.h
$Date: 2006/07/06 15:11:22 $
$Date: 2006/07/06 15:11:22 $ Revision 1.3 2006/07/06 15:09:32 jose
$Date: 2006/07/06 15:11:22 $ added include jLib.h
$Date: 2006/07/06 15:11:22 $
$Date: 2006/07/06 15:11:22 $ Revision 1.2 2006/07/03 16:24:26 jose
$Date: 2006/07/06 15:11:22 $ fixed jTime declaration
$Date: 2006/07/06 15:11:22 $
$Date: 2006/07/06 15:11:22 $ Revision 1.1.1.1 2005/05/20 19:49:14 jose
$Date: 2006/07/06 15:11:22 $ Parallel Differential Evolution
$Date: 2006/07/06 15:11:22 $
======================================================================== */
#include <time.h>
#include <string.h>
#include "jLib.h"
void jTime_now( char *buf, int bufsz, char *format ){
time_t Time;
time( &Time );
strftime( buf, bufsz, format, localtime( &Time ) );
}