I would like to create a yasnippet snippet which will insert automatically the current timestamp. I have found a code which actually prints the timestamp but I do not know how to integrate into a yasnippet snippet. Any way to do this?
Example. I would like that pressing "weather" and then TAB I get
2017-07-29, time =
so I can type the weather.