How to create time variable in input plugin

Answered here.