TimeIntervalFormatter.h
author snej@snej-mbp.mtv.corp.google.com
Tue Apr 07 11:13:25 2009 -0700 (2009-04-07)
changeset 23 a910102a1c9d
parent 0 d84d25d6cdbb
permissions -rw-r--r--
* Added MYReturnError.
* Better iPhone support in ExceptionUtils.
* Make sure "All Tests Passed/Failed" message is always logged.
jens@0
     1
//
jens@0
     2
//  TimeIntervalFormatter.h
jens@0
     3
//  MYUtilities
jens@0
     4
//
jens@0
     5
//  Copyright 2008 Jens Alfke. All rights reserved.
jens@0
     6
//
jens@0
     7
jens@0
     8
#import <Cocoa/Cocoa.h>
jens@0
     9
jens@0
    10
jens@0
    11
@interface TimeIntervalFormatter : NSFormatter
jens@0
    12
{
jens@0
    13
    BOOL _showsMinutes, _showsFractionalSeconds;
jens@0
    14
}
jens@0
    15
jens@0
    16
- (void) setShowsMinutes: (BOOL)showsMinutes;
jens@0
    17
- (void) setShowsFractionalSeconds: (BOOL)showsFractionalSeconds;
jens@0
    18
jens@1
    19
+ (NSString*) formatTimeInterval: (NSTimeInterval)interval;
jens@1
    20
jens@0
    21
@end