function [ y, m, d, h ] = hour_borrow_common ( y, m, d, h )

%*****************************************************************************80
%
%% hour_borrow_common() "borrows" a day of hours.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 June 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer Y, M, D, H, the year, month, day and hour of the date.
%
%  Output:
%
%    integer Y, M, D, H, the year, month, day and hour of the date, after borrowing.
%
  while ( h <= 0 )

    h = h + 24;
    d = d - 1;

    [ y, m, d ] = day_borrow_common ( y, m, d );

  end

  return
end
