public class palTime extends Object
Constructor and Description |
---|
palTime(int h,
int m,
int s)
Angles defined by Hour, minute, second
|
palTime(int h,
int m,
int s,
double frac)
Angle defined by Hour, minute, second, fraction
|
palTime(int h,
int m,
int s,
double frac,
char c)
Angle defined by Hour, minute, second, fraction and sign
|
Modifier and Type | Method and Description |
---|---|
double |
getFraction()
Get the fraction of a second
|
int |
getFraction(int n)
Get the fraction of a second to a set precision
|
int |
getHour()
Get the hour
|
int |
getMin()
Get the minute
|
int |
getSec()
Get the second
|
char |
getSign()
Get the sign
|
String |
printSign()
Get the sign as a String
|
String |
toString()
Get the Angle as a String
|
String |
toString(int n)
Get the Angle as a String to a set precision
|
public palTime(int h, int m, int s, double frac, char c)
h
- Hourm
- Minutes
- Secondfrac
- Fraction of secondc
- Sign ('+' or '-')public palTime(int h, int m, int s, double frac)
h
- Hourm
- Minutes
- Secondfrac
- Fraction of secondpublic palTime(int h, int m, int s)
h
- Hourm
- Minutes
- Secondpublic int getHour()
public int getMin()
public int getSec()
public double getFraction()
public int getFraction(int n)
n
- Number of decimal placespublic char getSign()
public String printSign()
public String toString(int n)
n
- Number of decimal places in fractionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.