You can do it via so called "forward declaration". It is a simple statement as you done it. But in the implemention file needs to be the header for that class. As parameter you better use pointers.
But I recommand you to do that NOT IN REAL CODE. It leeds to dependencies and its problems. It is better to use native data types for interfaces.
Example for your summation:
void time12::summation(int h24, int m24, int s24);
It improves maintainability and stability. And if you do it than see it as as "One way ticket". Never ever. :-O