Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix ] Distribution Issues

    All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.RawDate

    java.lang.Object
       |
       +----com.jconfig.RawDate

Summary

    public class  RawDate
         extends java.lang.Object
    {
              // Fields 6
         private int day;
         private int hour;
         private int minute;
         private int month;
         private int second;
         private int year;

              // Constructors 1
         public RawDate(int, int, int, int, int, int);

              // Methods 9
         public int getDay();
         public int getHour();
         public int getMinute();
         public int getMonth();
         public int getSecond();
         public int getYear();
         private int pinValue(int, int, int);
         public void putIntoArray(int[], int);
         public String toString();
    }

Stores a date in raw format:

- year - the actual year, >= 1. 1970 means 1970
- month - the month, 1 to 12
- day - the day, 1 to 31 or less
- hour - 0 to 23
- minute - 0 to 59
- second - 0 to 59

This class is immutable.

Author:
  Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.

Cross Reference

Returned By:
  DateBundle.getRawDate(), DateBundle.makeRawDate()

Fields

### · year | Summary | Top

       private int year

### · month | Summary | Top

       private int month

### · day | Summary | Top

       private int day

### · hour | Summary | Top

       private int hour

### · minute | Summary | Top

       private int minute

### · second | Summary | Top

       private int second

Constructors

### · RawDate | Summary | Top

       public RawDate(int yr,
                      int mo,
                      int dy,
                      int hh,
                      int mm,
                      int ss)

> Construct from a year, month, day, hour, minute, and second. If ( year < 1 || year > 1000000 ), it will be set to 1970. If any of the other values are out of range, they will be set to be within the values given above.

Methods

### · putIntoArray | Summary | Top

       public void putIntoArray(int[] ary,
                                int offset)

> Places the fields of this date into the six elements of ary, beginning at 'offset'. The fields are in this order: year, month, day, hour, minute, second. They have the significance indicated above.

### · getYear | Summary | Top

       public int getYear()

> Return the year. This will have the meaning given above.

### · getMonth | Summary | Top

       public int getMonth()

> Return the month. This will have the meaning given above.

### · getDay | Summary | Top

       public int getDay()

> Return the day. This will have the meaning given above.

### · getHour | Summary | Top

       public int getHour()

> Return the hour. This will have the meaning given above.

### · getMinute | Summary | Top

       public int getMinute()

> Return the minute. This will have the meaning given above.

### · getSecond | Summary | Top

       public int getSecond()

> Return the second. This will have the meaning given above.

### · pinValue | Summary | Top

       private int pinValue(int val,
                            int min,
                            int max)

### · toString | Summary | Top

       public String toString()

> Overrides:
>   toString in class Object

    All Packages  This Package  Class Hierarchy  Class Search  Index

Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7