/[pearpc]/src/io/prom/fs/hfsplus/hfstime.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /src/io/prom/fs/hfsplus/hfstime.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Wed Sep 5 17:11:21 2007 UTC (16 years, 7 months ago) by dpavlin
File MIME type: text/plain
File size: 1444 byte(s)
import upstream CVS
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

  ViewVC Help
Powered by ViewVC 1.1.26