]> err.no Git - sope/commitdiff
additions
authorznek <znek@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sat, 12 Feb 2005 19:13:26 +0000 (19:13 +0000)
committerznek <znek@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sat, 12 Feb 2005 19:13:26 +0000 (19:13 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@551 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-core/NGExtensions/ChangeLog
sope-core/NGExtensions/NGCalendarDateRange.m
sope-core/NGExtensions/NGExtensions/NGCalendarDateRange.h
sope-core/NGExtensions/Version

index fa1cd364b942518bcaea89473edbdf0462663683..45213e0e0662aed47ee4330a2a8b9e0d49af0bfd 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-12  Marcus Mueller  <znek@mulle-kybernetik.com>
+
+       * NGCalendarDateRange.[hm]: new method -duration (v4.5.145)
+
 2005-02-09  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * FdExt.subproj/NSCalendarDate+misc.m: Julian number <-> date
index c4d3f899e60480f093e3012020cd42603190d0c3..baed5ff5ad76cc223382990aebd873692ffed82b 100644 (file)
   return YES;
 }
 
+- (NSTimeInterval)duration {
+  return [self->endDate timeIntervalSinceDate:self->startDate];
+}
 
 /* comparison */
 
index 9724ee96c233d20e7f74778736661e8b824c7eb8..e3c270c11793ab51ef28025c128452be047141ad 100644 (file)
@@ -57,6 +57,8 @@
 - (BOOL)containsDate:(NSCalendarDate *)date;
 - (BOOL)containsDateRange:(NGCalendarDateRange *)_range;
 
+- (NSTimeInterval)duration;
+
 @end
 
 @interface NSArray(NGCalendarDateRanges)
index 2451bb22bdca0e9b0c33ca39c7d2f2e4feaad876..1b28f6daa8be2f082b9cd93dd74d66e128be8c17 100644 (file)
@@ -1,6 +1,6 @@
 # version
 
-SUBMINOR_VERSION:=144
+SUBMINOR_VERSION:=145
 
 # v4.3.115 requires libFoundation v1.0.59
 # v4.2.72  requires libEOControl  v4.2.39