Commit 67a905fb authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCTime: add new symbol to fetch the time in minutes as a string

parent a1b881f4
......@@ -45,6 +45,7 @@
@property (readonly) NSNumber * numberValue;
@property (readonly) NSString * stringValue;
@property (readonly) NSString * verboseStringValue;
@property (readonly) NSString * minuteStringValue;
@property (readonly) int intValue;
/* Comparitors */
......
......@@ -135,6 +135,16 @@
}
}
- (NSString *)minuteStringValue
{
if (value) {
long long positiveDuration = llabs([value longLongValue]);
long hours = positiveDuration / 36000;
return [NSString stringWithFormat:@"%ld", hours];
}
return @"";
}
- (int)intValue
{
if (value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment