author | Jens Alfke <jens@mooseyard.com> |
Fri Apr 18 09:25:10 2008 -0700 (2008-04-18) | |
changeset 6 | 2d492d8c2053 |
parent 3 | 8fad19466c59 |
child 11 | e5976864dfe9 |
permissions | -rw-r--r-- |
jens@2 | 1 |
// |
jens@2 | 2 |
// DateUtils.h |
jens@2 | 3 |
// Cloudy |
jens@2 | 4 |
// |
jens@2 | 5 |
// Created by Jens Alfke on 3/25/08. |
jens@2 | 6 |
// Copyright 2008 __MyCompanyName__. All rights reserved. |
jens@2 | 7 |
// |
jens@2 | 8 |
|
jens@2 | 9 |
#import <Cocoa/Cocoa.h> |
jens@2 | 10 |
|
jens@3 | 11 |
#ifdef __cplusplus |
jens@3 | 12 |
extern "C" { |
jens@3 | 13 |
#endif |
jens@4 | 14 |
|
jens@4 | 15 |
|
jens@4 | 16 |
/** Absolute time (since 'reference date') to NSDate. 0.0 -> nil. */ |
jens@4 | 17 |
NSDate* $date( CFAbsoluteTime ); |
jens@4 | 18 |
|
jens@4 | 19 |
/** NSDate to absolute time (since 'reference date'). nil -> 0.0 */ |
jens@4 | 20 |
CFAbsoluteTime $time( NSDate* ); |
jens@2 | 21 |
|
jens@3 | 22 |
|
jens@4 | 23 |
NSTimeInterval TimeIntervalSinceBoot(void); |
jens@3 | 24 |
|
jens@3 | 25 |
|
jens@3 | 26 |
#ifdef __cplusplus |
jens@3 | 27 |
} |
jens@3 | 28 |
#endif |