CountDown.tilltime()#

classmethod CountDown.tilltime(t: Union[int, float], **kwargs)[source]#

Alternative constructor for a countdown targeted at a specific unix timestamp.

Parameters
  • t (int, float) – Target-time in seconds since EPOCH.

  • **kwargs – Further keyword arguments are passed on to the ordinary constructor, see CountDown.

Examples

Countdown running until July 18th 2036, 13:20:00 is reached:

import alfred3 as al
exp = al.Experiment()

@exp.member
class Demo(al.Page):
    def on_exp_access(self):
        self += al.CounDown.tilltime(
            t=2_100_000_000,
            font_size="big",
            align="center"
            )