コード例 #1
0
ファイル: ZDate.cpp プロジェクト: BackupTheBerlios/iris-svn
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
コード例 #2
0
void Clock::setMillisecond()
{ 
    if (millisecond >= 999) {
        setSecond();
        millisecond = 0;
    }
    else {
        millisecond++;
    }

    return;
}
コード例 #3
0
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;
}
コード例 #4
0
Time::Time(int hour, int minute, int second){
    setHour(hour);
    setMinute(minute);
    setSecond(second);
}
コード例 #5
0
THMapOverlayPair::~THMapOverlayPair()
{
    setFirst(NULL, false);
    setSecond(NULL, false);
}
コード例 #6
0
THMapOverlayPair::~THMapOverlayPair()
{
    setFirst(nullptr, false);
    setSecond(nullptr, false);
}
コード例 #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);
}
コード例 #8
0
ファイル: RADec.cpp プロジェクト: vpascow/RadioTelescope
bool Dec::setDec(float d, float m, float s) {
	if (setDegree(d) && setMinute(m) && setSecond(s))
		return 1;
	
	return 0;
}
コード例 #9
0
ファイル: RADec.cpp プロジェクト: vpascow/RadioTelescope
/* 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;
}