Snap shot date time

Hello I am coming from a wonderware background so bare with me. I am trying to snap shot the current time into a string from a push button can’t seem to get just the time.

You can use the dateFormat function and format the DateTime object to just the time portion
https://docs.inductiveautomation.com/display/DOC80/dateFormat

Also, welcome aboard the Ignition train

system.date.format(system.date.now(), "HH:mm:ss")

You’ll want to examine string formatting in Python, but this will do what you’re looking for. Keep in mind this will be the time of the Gateway - not the client.

Edit: thanks, @PGriffith. Also: docs

Ah yes, button = python, whoops! :flushed:

Thanks guys! I just needed to be pointed in the right direction.