Skip to content

Basic functions.

cookie0_o edited this page Mar 18, 2023 · 8 revisions

Commands:

  • Import module:
    command: from doomsday.clock import *

  • Get status:
    x = 0 - Full Resp. with extra text etc.
    x = 1 - Resp. without extra information
    x = 2 - Html Resp.
    command: time = doomsday.time(type=x)

  • Get clock image:
    command: clock_img = doomsday.img()

Example response:

  • Get status:
    x seconds to midnight(minutes, hours)
    still x seconds to midnight(minutes, hours)

  • Get clock image:
    https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Doomsday_clock_%281.5_minutes%29.svg/120px-Doomsday_clock_%281.5_minutes%29.svg.png
    ex_img


Clone this wiki locally