html_compose.attributes.time_attrs

 1from . import BaseAttribute
 2
 3
 4class TimeAttrs:
 5    """
 6    This module contains functions for attributes in the 'time' element.
 7    Which is inherited by a class so we can generate type hints
 8    """
 9
10    @staticmethod
11    def datetime(value) -> BaseAttribute:
12        """
13        "time" attribute: datetime
14        Machine-readable value
15
16        Args:
17            value:
18                Valid month string, valid date string, valid yearless date string, valid time string, valid local date and time string, valid time-zone offset string, valid global date and time string, valid week string, valid non-negative integer, or valid duration string
19
20        Returns:
21            An datetime attribute to be added to your element
22
23        """
24
25        return BaseAttribute("datetime", value)
class TimeAttrs:
 5class TimeAttrs:
 6    """
 7    This module contains functions for attributes in the 'time' element.
 8    Which is inherited by a class so we can generate type hints
 9    """
10
11    @staticmethod
12    def datetime(value) -> BaseAttribute:
13        """
14        "time" attribute: datetime
15        Machine-readable value
16
17        Args:
18            value:
19                Valid month string, valid date string, valid yearless date string, valid time string, valid local date and time string, valid time-zone offset string, valid global date and time string, valid week string, valid non-negative integer, or valid duration string
20
21        Returns:
22            An datetime attribute to be added to your element
23
24        """
25
26        return BaseAttribute("datetime", value)

This module contains functions for attributes in the 'time' element. Which is inherited by a class so we can generate type hints

@staticmethod
def datetime(value) -> html_compose.base_attribute.BaseAttribute:
11    @staticmethod
12    def datetime(value) -> BaseAttribute:
13        """
14        "time" attribute: datetime
15        Machine-readable value
16
17        Args:
18            value:
19                Valid month string, valid date string, valid yearless date string, valid time string, valid local date and time string, valid time-zone offset string, valid global date and time string, valid week string, valid non-negative integer, or valid duration string
20
21        Returns:
22            An datetime attribute to be added to your element
23
24        """
25
26        return BaseAttribute("datetime", value)

"time" attribute: datetime Machine-readable value

Args: value: Valid month string, valid date string, valid yearless date string, valid time string, valid local date and time string, valid time-zone offset string, valid global date and time string, valid week string, valid non-negative integer, or valid duration string

Returns: An datetime attribute to be added to your element