DateUtils.h
author Jens Alfke <jens@mooseyard.com>
Sat Mar 28 09:36:46 2009 -0700 (2009-03-28)
changeset 20 5a71993a1a70
parent 4 64823cdde6a5
permissions -rw-r--r--
Added some new utilities, taken from Murky.
jens@2
     1
//
jens@2
     2
//  DateUtils.h
jens@11
     3
//  MYUtilities
jens@2
     4
//
jens@2
     5
//  Created by Jens Alfke on 3/25/08.
jens@11
     6
//  Copyright 2008 Jens Alfke. 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