1 |
/* |
2 |
* libhfs - library for reading and writing Macintosh HFS volumes |
3 |
* |
4 |
* Copyright (C) 2000 Klaus Halfmann <klaus.halfmann@feri.de> |
5 |
* Original 1996-1998 Robert Leslie <rob@mars.org> |
6 |
* other work 2000 from Brad Boyer (flar@pants.nu) |
7 |
* |
8 |
* The HFS+ dates are stored as UInt32 containing the number of seconds since |
9 |
* midnight, January 1, 1904, GMT. This is slightly different from HFS, |
10 |
* where the value represents local time. A notable exception is the |
11 |
* creationdate !. Linux uses times in GMT starting at January 1, 1970 |
12 |
* |
13 |
* This program is free software; you can redistribute it and/or modify |
14 |
* it under the terms of the GNU General Public License as published by |
15 |
* the Free Software Foundation; either version 2 of the License, or |
16 |
* (at your option) any later version. |
17 |
* |
18 |
* This program is distributed in the hope that it will be useful, |
19 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
20 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
21 |
* GNU General Public License for more details. |
22 |
* |
23 |
* You should have received a copy of the GNU General Public License |
24 |
* along with this program; if not, write to the Free Software |
25 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
26 |
* |
27 |
*/ |
28 |
|
29 |
#include <time.h> |
30 |
|
31 |
/* The number of seconds between 1.1.1904 and 1.1.1970 */ |
32 |
#define HFSPTIMEDIFF 2082844800U |
33 |
|
34 |
/* return the given apple time as UNIX time */ |
35 |
extern char* get_atime(UInt32 atime); |
36 |
|