AWF plugin that returns system date/time for workflow injection.
awf plugin install awf-project/awf-plugin-timeReturns the current system date and time.
| Name | Type | Default | Description |
|---|---|---|---|
format |
string | RFC3339 | Go time layout |
tz |
string | Local | IANA timezone name |
- Output string: Formatted date/time
- Data:
timestamp— RFC3339 (always, regardless of format)unix— Unix timestamp (int64)timezone— Resolved timezone name
name: get-current-time
description: Fetch system time via plugin
states:
initial: get_time
get_time:
type: operation
operation: awf-plugin-time.time
inputs:
format: "2006-01-02 15:04:05"
tz: "UTC"
on_success: done
done:
type: terminal
status: success
message: "Current time: {{.states.get_time.Output}}"make build # Build binary
make test # Run tests
make install # Install to ~/.local/share/awf/plugins/time/
make clean # Remove binaryMIT