gen_email.rb
# Verify that the timestamp is in the same format as the Remedy systems timestamp format. This will save the user
# a lot of trouble by making them input the correct timestamp before they send the email.
Verify that the timestamp is in the same format as the Remedy systems timestamp format. This will save the user
a lot of trouble by making them input the correct timestamp before they send the email.
Verify that the timestamp is in the same format as the Remedy systems timestamp format . This will save the user a lot of trouble by making them input the correct timestamp before they send the email .
def verify_timestamp(stamp)
  begin
    if !(stamp[/^\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}:\d{1,2}:\d{1,2} [AP]M\z/])
      FORMAT.warning('Invalid format of timestamp example: 06/07/2016 5:30:23 AM')
      raise TimeStampFormatError
    else
      stamp
    end
  rescue TimeStampFormatError
    timestamp
  end
end
def verify_timestamp ( stamp ) begin if ! ( stamp [ / ^ \d {1,2} \/ \d {1,2} \/ \d {4}  \d {1,2}: \d {1,2}: \d {1,2} [AP]M \z / ] ) FORMAT . warning ( 'Invalid format of timestamp example: 06/07/2016 5:30:23 AM' ) raise TimeStampFormatError else stamp end rescue TimeStampFormatError timestamp end end
Verify that the timestamp is in the same format as the Remedy systems timestamp format.
Verify that the timestamp is in the same format as the Remedy systems timestamp format .
stamp
<not_specific>