summaryrefslogtreecommitdiff
path: root/platform/darwin/src/NSDate+MGLAdditions.h
blob: 820d1bd9e22b607e79c0b7c7a64fbd45cc8e25b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#import <Foundation/Foundation.h>

#include <mbgl/util/chrono.hpp>

@interface NSDate (MGLAdditions)

/// Converts from a duration in seconds to a duration object usable in mbgl.
mbgl::Duration MGLDurationInSecondsFromTimeInterval(NSTimeInterval duration);

/// Converts from an mbgl duration object to a duration in seconds.
NSTimeInterval MGLTimeIntervalFromDurationInSeconds(mbgl::Duration duration);

@end