home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Palettes / MiscClockPalette / MiscClockView.subproj / MiscClockView_MiscTime.m < prev    next >
Encoding:
Text File  |  1993-10-01  |  914 b   |  38 lines

  1. //
  2. //    MiscClockView_MiscTime.m -- a simple view class for displaying date/time
  3. //        Written by Scott Anguish (c) 1993 by Scott Anguish.
  4. //                Version 1.0.  All rights reserved.
  5. //
  6. //        This notice may not be removed from this source code.
  7. //
  8. //    This object is included in the MiscKit by permission from the author
  9. //    and its use is governed by the MiscKit license, found in the file
  10. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  11. //    for a list of all applicable permissions and restrictions.
  12. //    
  13.  
  14. #import <sys/time.h>    
  15.  
  16. #import "MiscClockView_MiscTime"
  17.  
  18.  
  19. @implementation MiscClockView(MiscTime)
  20.  
  21. - setMiscTime:aTime
  22. {
  23.     [self setSeconds:[aTime second]];
  24.     [self setMinutes:[aTime minute]];
  25.     [self setHours:[aTime hour]];
  26.     [self setWeekday:[aTime dayOfWeek]];
  27.     [self setDate:[aTime day]];
  28.     [self setMonth:[aTime month]];
  29.     [self setYear:[aTime year]];
  30.     [self display];
  31.     return self;
  32. }
  33.  
  34.  
  35.  
  36.  
  37. @end
  38.