Merging dataframes with datetime values can be tricky if the time is not exact.
Pandas does a great job working with this.
First DataFrame
Second DataFrame
Merging them DataFrame
As you can the time index has slight time differences, still they are being merged.
Read full documentation