mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 23:12:56 +00:00
14 lines
402 B
Python
14 lines
402 B
Python
# Copyright (c) Jupyter Development Team.
|
|
# Distributed under the terms of the Modified BSD License.
|
|
import datetime
|
|
|
|
from docker.models.containers import Container
|
|
|
|
from tagging.taggers.tagger_interface import TaggerInterface
|
|
|
|
|
|
class DateTagger(TaggerInterface):
|
|
@staticmethod
|
|
def tag_value(container: Container) -> str:
|
|
return datetime.datetime.now(datetime.UTC).strftime("%Y-%m-%d")
|