Date
sereto.cli.date
¶
prompt_user_for_date(date_type)
¶
Prompt user for a date or date range, depending on the provided date type.
Date format is DD-Mmm-YYYY.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
date_type
|
DateType
|
The type of date to prompt for. |
required |
Returns:
Type | Description |
---|---|
SeretoDate | DateRange
|
The date as provided by the user. |
Source code in sereto/cli/date.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|