src/org/ohmage/service/CampaignServices.java
public void verifyCampaignIsUpToDate(final Campaign campaign, 
			final DateTime creationTimestamp) throws ServiceException {
		
		long creationTimeWithoutMillis = 
			campaign.getCreationTimestamp().getMillis() / 1000;
		long givenTimeWithoutMillis = creationTimestamp.getMillis() / 1000;
		
		if(creationTimeWithoutMillis != givenTimeWithoutMillis) {
			throw new ServiceException(
					ErrorCode.CAMPAIGN_OUT_OF_DATE, 
					"The given timestamp is not the same as the campaign's creation timestamp.");
		}
	}
/**
	 * Verifies that the given timestamp is the same as the campaign's creation
	 * timestamp.
	 * 
	 * @param campaignId The campaign's unique identifier.
	 * 
	 * @param creationTimestamp The expected campaign creation timestamp.
	 * 
	 * @throws ServiceException Thrown if the expected and actual campaign 
	 * 							creation timestamps are not the same or if 
	 * 							there is an error.
	 */
Verifies that the given timestamp is the same as the campaign's creation
timestamp.

@param campaignId The campaign's unique identifier.

@param creationTimestamp The expected campaign creation timestamp.

@throws ServiceException Thrown if the expected and actual campaign
creation timestamps are not the same or if
there is an error.
Verifies that the given timestamp is the same as the campaign ' s creation timestamp . @param campaignId The campaign ' s unique identifier . @param creationTimestamp The expected campaign creation timestamp . @throws ServiceException Thrown if the expected and actual campaign creation timestamps are not the same or if there is an error .
public void verifyCampaignIsUpToDate(final Campaign campaign, 
			final DateTime creationTimestamp) throws ServiceException {
		long creationTimeWithoutMillis = 
			campaign.getCreationTimestamp().getMillis() / 1000;
		long givenTimeWithoutMillis = creationTimestamp.getMillis() / 1000;
		if(creationTimeWithoutMillis != givenTimeWithoutMillis) {
			throw new ServiceException(
					ErrorCode.CAMPAIGN_OUT_OF_DATE, 
					"The given timestamp is not the same as the campaign's creation timestamp.");
		}
	}
public void verifyCampaignIsUpToDate ( final Campaign campaign , final DateTime creationTimestamp ) throws ServiceException { long creationTimeWithoutMillis = campaign . getCreationTimestamp ( ) . getMillis ( ) / 1000 ; long givenTimeWithoutMillis = creationTimestamp . getMillis ( ) / 1000 ; if ( creationTimeWithoutMillis != givenTimeWithoutMillis ) { throw new ServiceException ( ErrorCode . CAMPAIGN_OUT_OF_DATE , "The given timestamp is not the same as the campaign's creation timestamp." ) ; } }
Verifies that the given timestamp is the same as the campaign's creation
 timestamp.
Verifies that the given timestamp is the same as the campaign ' s creation timestamp .