![]() ![]() get ( 'AIRFLOW_USE_NEW_IMPORTS', False ): from precation import deprecated as _deprecated for _macro in macros_module. modules = macros_module globals () = macros_module # TODO FIXME Remove in Airflow 2.0 import os as _os if not _os. diff_for_humans ( since ) def _integrate_plugins (): """Integrate plugins to the context""" import sys from ugins_manager import macros_modules for macros_module in macros_modules : sys. :type since: None or datetime :rtype: str """ import pendulum return pendulum. If ``None`` then the diff is between ``dt`` and now. :param dt: The datetime to display the diff for :type dt: datetime :param since: When to display the date from. def datetime_diff_for_humans ( dt, since = None ): """ Return a human-readable/approximate difference between two datetimes, or one and now. from _future_ import absolute_import from datetime import datetime, timedelta import dateutil # noqa from random import random # noqa import time # noqa from. See the License for the # specific language governing permissions and limitations # under the License. You may obtain a copy of the License at # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License") you may not use this file except in compliance # with the License. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements.
0 Comments
Leave a Reply. |