Ejemplo n.º 1
0
ZExport0 ZDateTime::ZDateTime (int aYear, int aMonth, int aDay, int aHour,
                               int aMinute, int aSecond)
{
  ZFUNCTRACE_DEVELOP
    ("ZDateTime::ZDateTime(int aYear, int aMonth, int aDay, int aHour, int aMinute, int aSecond)");
  setYear (aYear);
  setMonth (aMonth);
  setDay (aDay);
  setHour (aHour);
  setMinute (aMinute);
  setSecond (aSecond);
}                               // ZDateTime
void Clock::setMillisecond()
{ 
    if (millisecond >= 999) {
        setSecond();
        millisecond = 0;
    }
    else {
        millisecond++;
    }

    return;
}
void Clock::tick()
{
    ticks++;

    if ((getId() == 1) || (getId() == 2)) {
        Log_info4("id %d : %d:%d:%d", getId(), hour, minute, second);
        Log_info5("id %d : %s %d, %d%d", getId(), (IArg)months[month-1], day, century, year);
    }

    /*
     * Change selected function to alter clock rate
     */ 
//  setMicrosecond();
//  setMillisecond();
    setSecond(); 
//  setMinute();
//  setDay(); 
    return;
}
Ejemplo n.º 4
0
Time::Time(int hour, int minute, int second){
    setHour(hour);
    setMinute(minute);
    setSecond(second);
}
Ejemplo n.º 5
0
THMapOverlayPair::~THMapOverlayPair()
{
    setFirst(NULL, false);
    setSecond(NULL, false);
}
Ejemplo n.º 6
0
THMapOverlayPair::~THMapOverlayPair()
{
    setFirst(nullptr, false);
    setSecond(nullptr, false);
}
Ejemplo n.º 7
0
// SETTERS
// set new Time value using universal time
void Time::setTime(int h, int m, int s) {
    setHour(h);
    setMinute(m);
    setSecond(s);
}
Ejemplo n.º 8
0
bool Dec::setDec(float d, float m, float s) {
	if (setDegree(d) && setMinute(m) && setSecond(s))
		return 1;
	
	return 0;
}
Ejemplo n.º 9
0
/* Methods from the RA class */	
bool RA::setRA(float h, float m, float s) {
	if (setHour(h) && setMinute(m) && setSecond(s))
		return 1;
	
	return 0;
}