Source code for RsFsw.Implementations.Applications.K6_Pulse.FormatPy.Dexport.Tstamp

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TstampCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("tstamp", core, parent)

[docs] def set(self, state: bool) -> None: """ ``FORMat:DEXPort:TSTamp`` \n Snippet: ``driver.applications.k6Pulse.formatPy.dexport.tstamp.set(state = False)`` \n Turns on display of absolute time stamp for table export. :param state: ON | OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'FORMat:DEXPort:TSTamp {param}')
[docs] def get(self) -> bool: """ ``FORMat:DEXPort:TSTamp`` \n Snippet: ``value: bool = driver.applications.k6Pulse.formatPy.dexport.tstamp.get()`` \n Turns on display of absolute time stamp for table export. :return: state: ON | OFF """ response = self._core.io.query_str(f'FORMat:DEXPort:TSTamp?') return Conversions.str_to_bool(response)