mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
Minor tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14616 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fb633bd662
commit
ff2dedee6b
3 changed files with 19 additions and 9 deletions
|
@ -237,6 +237,10 @@ if ([(NSDate*) [NSCalendarDate date] compare:
|
|||
printf("Add four hours - %s\n", [DESCRIP_FORMAT(c) cString]);
|
||||
c = [c addYear:0 month:0 day:0 hour:-24 minute:0 second:0];
|
||||
printf("Subtract twentyfour hours - %s\n", [DESCRIP_FORMAT(c) cString]);
|
||||
c = [c addYear:0 month:0 day:0 hour:24 minute:0 second:0];
|
||||
printf("Add twentyfour hours - %s\n", [DESCRIP_FORMAT(c) cString]);
|
||||
c = [c addYear:0 month:0 day:-1 hour:0 minute:0 second:0];
|
||||
printf("Subtract a day - %s\n", [DESCRIP_FORMAT(c) cString]);
|
||||
|
||||
c = [NSCalendarDate dateWithString: @"2002-10-27 00:30:00 GB"
|
||||
calendarFormat: @"%Y-%m-%d %H:%M:%S %Z"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue