Metadata-Version: 2.1
Name: sceptre-date-resolver
Version: 1.0.0
Summary: A Sceptre resolver to retrieve the current datetime
Home-page: https://github.com/sceptre/sceptre-date-resolversceptre-date-resolver
Author: zaro0508
Author-email: zaro0508@gmail.com
License: Apache2
Keywords: sceptre,sceptre-resolver
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: packaging (==16.8)
Provides-Extra: test
Requires-Dist: pytest (>=3.2) ; extra == 'test'

---
layout: docs
title: Resolvers
---

# Overview

The purpose of this resolver is to retrieve the current datetime

## Available Resolvers

### date

Fetches the current datetime in an [ISO 8601 format](https://docs.python.org/3/library/time.html#time.strftime).
The default format is "%Y-%m-%d %H:%M:%S".

Syntax:

```yaml
parameter|sceptre_user_data:
    <name>: !date
```

Examples:

Retrieve date (using default format) and pass it to a
cloudformation parameter:
```
parameters:
    now: !date
```

Retrieve the date (in MM/DD/YYYY format) and pass it to a
cloudformation parameter:
```
parameters:
    now: !date "%m/%d/%Y"
```

Retrieve the time (in H:M:S format) and pass it to a
cloudformation parameter:
```
parameters:
    now: !date "%H:%M:%S"
```


