Class: QgsMeshTimeSettings

class qgis.core.QgsMeshTimeSettings

Bases: sip.wrapper

Represents a mesh time settings for mesh datasets

Added in version 3.8:

Methods

absoluteTimeFormat

Returns format used for absolute time

readXml

Reads configuration from the given DOM element

relativeTimeFormat

Returns format used for relative time

setAbsoluteTimeFormat

Sets format used for absolute time

setRelativeTimeFormat

Sets format used for relative time

writeXml

Writes configuration to a new DOM element

Attributes

days

hours

minutes

seconds

class TimeUnit

Bases: int

absoluteTimeFormat(self) str

Returns format used for absolute time

Return type:

str

days = 3
hours = 2
minutes = 1
readXml(self, elem: QDomElement, context: QgsReadWriteContext)

Reads configuration from the given DOM element

Parameters:
relativeTimeFormat(self) str

Returns format used for relative time

Return type:

str

seconds = 0
setAbsoluteTimeFormat(self, absoluteTimeFormat: str | None)

Sets format used for absolute time

Parameters:

absoluteTimeFormat (Optional[str])

setRelativeTimeFormat(self, relativeTimeFormat: str | None)

Sets format used for relative time

Parameters:

relativeTimeFormat (Optional[str])

writeXml(self, doc: QDomDocument, context: QgsReadWriteContext) QDomElement

Writes configuration to a new DOM element

Parameters:
Return type:

QDomElement