How to add the time-dependent pair force

Is this related to this post? Time-dependent external force