~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to Headers/Additions/GNUstepBase/NSCalendarDate+GNUstepBase.h

Tags: upstream-1.20.0
ImportĀ upstreamĀ versionĀ 1.20.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/** Declaration of extension methods for base additions
 
3
 
 
4
   Copyright (C) 2003-2010 Free Software Foundation, Inc.
 
5
 
 
6
   Written by:  Richard Frith-Macdonald <rfm@gnu.org>
 
7
   and:         Adam Fedor <fedor@gnu.org>
 
8
 
 
9
   This file is part of the GNUstep Base Library.
 
10
 
 
11
   This library is free software; you can redistribute it and/or
 
12
   modify it under the terms of the GNU Lesser General Public
 
13
   License as published by the Free Software Foundation; either
 
14
   version 2 of the License, or (at your option) any later version.
 
15
   
 
16
   This library is distributed in the hope that it will be useful,
 
17
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
19
   Library General Public License for more details.
 
20
 
 
21
   You should have received a copy of the GNU Lesser General Public
 
22
   License along with this library; if not, write to the Free
 
23
   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
24
   Boston, MA 02111 USA.
 
25
 
 
26
*/
 
27
 
 
28
#ifndef INCLUDED_NSCalendarDate_GNUstepBase_h
 
29
#define INCLUDED_NSCalendarDate_GNUstepBase_h
 
30
 
 
31
#import <GNUstepBase/GSVersionMacros.h>
 
32
#import <Foundation/NSCalendarDate.h>
 
33
 
 
34
#if     defined(__cplusplus)
 
35
extern "C" {
 
36
#endif
 
37
 
 
38
#if     OS_API_VERSION(GS_API_NONE,GS_API_LATEST)
 
39
 
 
40
@interface NSCalendarDate (GNUstepBase)
 
41
/**
 
42
 * The ISO standard week of the year is based on the first week of the
 
43
 * year being that week (starting on monday) for which the thursday
 
44
 * is on or after the first of january.<br />
 
45
 * This has the effect that, if january first is a friday, saturday or
 
46
 * sunday, the days of that week (up to and including the sunday) are
 
47
 * considered to be in week 53 of the preceding year. Similarly if the
 
48
 * last day of the year is a monday tuesday or wednesday, these days are
 
49
 * part of week 1 of the next year.
 
50
 */
 
51
- (NSInteger) weekOfYear;
 
52
@end
 
53
 
 
54
#endif  /* OS_API_VERSION */
 
55
 
 
56
#if     defined(__cplusplus)
 
57
}
 
58
#endif
 
59
 
 
60
#endif  /* INCLUDED_NSCalendarDate_GNUstepBase_h */
 
61