Not from the input itself, as @Kaemalux suggested, using events would be the way here.
E.g. using a global event with Key event type that sets a float game variable to Time Of Day. The used input key needs to be a Down input handling key.
You can get the time the key was pressed by subtracting the stored time in the game variable from the current Time Of Day.