Skip to content

Instantly share code, notes, and snippets.

@TomerCohen95
Last active September 27, 2019 09:52
Show Gist options
  • Save TomerCohen95/615845d6d078dfb5e3885795a1d66f74 to your computer and use it in GitHub Desktop.
Save TomerCohen95/615845d6d078dfb5e3885795a1d66f74 to your computer and use it in GitHub Desktop.
fifth and sixth layer
def was_created_today(machine: vim.VirtualMachine) -> bool:
date = _get_date_from_name(machine.name)
# return some implemetation that checks if date is today
def _get_date_from_name(name: str) -> datetime.date:
# return some implementation that extracts date from name of machine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment