DateUtils.h
author Jens Alfke <jens@mooseyard.com>
Sun May 03 10:13:31 2009 -0700 (2009-05-03)
changeset 27 256370e8935a
parent 4 64823cdde6a5
permissions -rw-r--r--
* MYTask: Added -commandLine, overhauled logging.
* MYDirectoryWatcher: Overhauled logging.
* MYErrorUtils: Disabled use of Security API (so it'll build without linking against Security.framework.)
     1 //
     2 //  DateUtils.h
     3 //  MYUtilities
     4 //
     5 //  Created by Jens Alfke on 3/25/08.
     6 //  Copyright 2008 Jens Alfke. All rights reserved.
     7 //
     8 
     9 #import <Cocoa/Cocoa.h>
    10 
    11 #ifdef __cplusplus
    12 extern "C" {
    13 #endif
    14     
    15     
    16     /** Absolute time (since 'reference date') to NSDate. 0.0 -> nil. */
    17     NSDate* $date( CFAbsoluteTime );
    18     
    19     /** NSDate to absolute time (since 'reference date'). nil -> 0.0 */
    20     CFAbsoluteTime $time( NSDate* );
    21 
    22     
    23     NSTimeInterval TimeIntervalSinceBoot(void);
    24 
    25 
    26 #ifdef __cplusplus
    27 }
    28 #endif