Generate a TOTP token for a specific time

oathtool

oathtool --totp --now "{{2004-02-29 16:21:42}}" --base32 "{{secret}}"

click the source code to copy install oathtool on any operating system with command-not-found.com