Imported Upstream version 1.57.0
[platform/upstream/boost.git] / tools / build / src / engine / timestamp.h
1 /*
2  * Copyright 1993, 1995 Christopher Seiwald.
3  *
4  * This file is part of Jam - see jam.c for Copyright information.
5  */
6
7 /*
8  * timestamp.h - get the timestamp of a file or archive member
9  */
10
11 #ifndef TIMESTAMP_H_SW_2011_11_18
12 #define TIMESTAMP_H_SW_2011_11_18
13
14 #include "object.h"
15
16 #ifdef OS_NT
17 # include <windows.h>
18 #endif
19
20 #include <time.h>
21
22 typedef struct timestamp
23 {
24     time_t secs;
25     int nsecs;
26 } timestamp;
27
28 void timestamp_clear( timestamp * const );
29 int timestamp_cmp( timestamp const * const lhs, timestamp const * const rhs );
30 void timestamp_copy( timestamp * const target, timestamp const * const source );
31 void timestamp_current( timestamp * const );
32 int timestamp_empty( timestamp const * const );
33 void timestamp_from_path( timestamp * const, OBJECT * const path );
34 void timestamp_init( timestamp * const, time_t const secs, int const nsecs );
35 void timestamp_max( timestamp * const max, timestamp const * const lhs,
36     timestamp const * const rhs );
37 char const * timestamp_str( timestamp const * const );
38 char const * timestamp_timestr( timestamp const * const );
39
40 #ifdef OS_NT
41 void timestamp_from_filetime( timestamp * const, FILETIME const * const );
42 #endif
43
44 void timestamp_done();
45
46 #endif