The purpose of this plugin is to check if current time is in given time span.
Project description
Tracardi plugin
This code can be run within Tracardi workflow.
Is in time span action
The purpose of this plugin is to check if the local time is within defined time span.
This action minds the time zone to the event. Therefore, you must provide time zone. By default, time zone is included in browser event context.
Configuration
This node requires configuration. In order to read timezone you must define path to time zone. Use dot notation to do that.
Moreover, you need to set start and end of the time span. The time slots have no default values.
Example of the configuration:
{
"timezone": "session@context.time.tz",
"start": "12:00:00",
"end": "14:00:00"
}
Input payload
This node does not process input payload.
Output
Return True or False. Return True if local time is in defined time span.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tracardi-local-timespan-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b2de0fea796ddc90d81d8277c8860d643cb07e3f665ac8b38ead40090be14d5 |
|
MD5 | 02254ba60a66a44d442e9b6de991b361 |
|
BLAKE2b-256 | b7788ff7926894f49f312357907ff2af7c4c0a3d63595afcaa156a3d0bcaa40d |
Hashes for tracardi_local_timespan-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b62e561b0627709843b0d37c0985bbfded2c93f3a1b129fd71e66e62d8dab41 |
|
MD5 | ac85d521e3cc06cb765b89f56a48d512 |
|
BLAKE2b-256 | 82b82310d3341fc36e7f2edbd03de5d6c9d1208a8a4787277e2f8c4656312482 |