in java we use this code
if (now.before(endTime) && now.after(startTime)) { Log.d(LOG_TAG, "Yes time between");}
i want similar code in c++