Sha256: d93584e4f0f3d7cb85806a83ac67b1d08f79f7b9a5980981ec9cc42024531da1

Contents?: true

Size: 405 Bytes

Versions: 396

Compression:

Stored size: 405 Bytes

Contents

#import "GigasecondExample.h"

@implementation Gigasecond {
    NSDate *_startDate;
}

- (instancetype)initWithStartDate:(NSDate *)date {
    if (self = [super init]) {
        _startDate = date;
    }
    
    return self;
}

- (NSDate *)gigasecondDate {
    NSTimeInterval gigasecondInterval = pow(10.0, 9);
    
    return [NSDate dateWithTimeInterval:gigasecondInterval sinceDate:_startDate];
}

@end

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.179 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.178 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.177 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.176 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.175 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.174 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.173 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.172 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.171 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.170 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.169 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.167 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.166 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.165 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.164 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.163 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.162 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.161 tracks/objective-c/exercises/gigasecond/GigasecondExample.m
trackler-2.2.1.160 tracks/objective-c/exercises/gigasecond/GigasecondExample.m