Results for “datetime”

5 results

  1. Challenge

    Live T-minus

    …work out the seconds left from the launch time and datetime.now(timezone.utc) instead of a number typed by hand, then turn it into a countdown() that counts up with T+ after launch.

    Write the code Medium 2 stages datetime datetime.now timezone countdown
  2. Challenge

    Mission elapsed time

    Parse the launch and the latest telemetry timestamp with datetime.fromisoformat(), subtract them to get the mission elapsed time, then time events reported by ground stations in three different time…

    Write the code Medium 2 stages datetime timedelta ISO 8601 time zones
  3. Challenge

    Launch schedule digest

    …function such as window(launch) , returning the parsed datetime, works for the comparison and as the key for sorted() . strftime("%Y-%m-%d %H:%M") formats a datetime. Time left, and holds Add the time…

    Write the code Medium 3 stages project json datetime timedelta
  4. Challenge

    Ground pass planner

    …as (start, end, station, minutes) with the times parsed by datetime.fromisoformat() . Sort them by start time and print: Contact windows over 8 minutes: 06:30:00-06:44:00 Usuda 14.0 min…

    Write the code Medium 2 stages project datetime timedelta sorting
  5. Article Mini projects

    Medical dispenser - Don’t trust the user

    …The Vulnerable Approach: Trusting System Time from datetime import datetime, timedelta import json class NaiveMedicationDispenser: """The Hail Mary's original dispenser - easily hackable""" def…