Skip to content

Commit

Permalink
Updates datetime user guide
Browse files Browse the repository at this point in the history
  • Loading branch information
apbassett committed Oct 22, 2024
1 parent 125a72e commit 1b2a536
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions source/user_guide/basic_capabilities/feature_attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,20 @@ to a different range, modify the ``min`` and ``max`` ``bounds`` feature attribut
- Specify the ``type`` as `continuous` inside IFA.
- Specify the maximum value (exclusive) as the ``cycle_length`` feature attribute.

How do I specify dates?
How do I specify dates or times?
-----------------------
- Often, IFA can intuit the proper date format especially if the dates are a
- Often, IFA can intuit the proper date/time format, especially if they are a
Python ``datetime`` object.
- They can also be specified by passing a dictionary to IFA using the
``datetime_feature_formats`` argument.
- An example is: ``{ "end_date" : "%Y-%m-%d" }``
``datetime_feature_formats`` argument. For example:

.. code-block:: python
datetime_feature_formats={
"end_date": "%Y-%m-%d",
"start_time": "%H:%M:%S.%f",
"end_time": "%I:%M:%S %p",
}
What are **partial features**?
------------------------------
Expand Down

0 comments on commit 1b2a536

Please sign in to comment.