This page lists all the specialist arguments that might appear in commands.
The length parameter is in the format
seconds, though not all parts are required. So:
For example: if you want to ban
Notch for 3 hours, 45 minutes, the command would be:
/tempban Notch 3h45m Banned by Nucleus