Clock plugin
This plugin provides the Date and Time
This plugin is not loaded by default, so to use it you will first need to add it to your VCPs YAML config file.
YAML configuration:
data_plugins:
clock:
provider: qtpyvcp.plugins.clock:Clock
Available datachannels
- time
Returns the current date as a formatted string. Default format is
%I:%M:%S %pwhich gives a 12-hour clock in HH:MM:SS AM format.See http://strftime.org for supported formats.
syntaxclock:timereturns strThe default formatting can be overridden as follows:
syntaxclock:time?string&format=%Sreturns str
- date
Returns the current date as a formatted string. Default format is
%m/%d/%Ywhich gives MM/DD/YYYYSee http://strftime.org for supported formats.
syntaxclock:datereturns strThe default formatting can be overridden as follows:
syntaxclock:date?string&format=%Sreturns str