extrinsics.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:cfpp 作者: dcoker 项目源码 文件源码
def strftime(config, context, arg, now=time.gmtime()):
    """
    strftime returns the current time (in UTC) converted to the format
    specified by the first argument. The format is specified using
    Python's time.strftime format (
    https://docs.python.org/2/library/time.html#time.strftime).

    Example:
        {"CFPP::Strftime": "%Y%m%d_%H%M%S"}  ==>  20060102_220405

    Note: use special care when using this function with CloudFormation's
    "update" functionality. The output of this function will change each
    time cfpp is run.
    """
    _raise_unless_string(context, arg)
    return time.strftime(arg, now)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号