Skip to content
Chainsaw
time_now
Initializing search
kyverno/chainsaw
Home
Getting started
Configuration
Test
Operations
Reference
Examples
Community
Chainsaw
kyverno/chainsaw
Home
Getting started
Getting started
Installation
Shell Completion
Create a test
Run tests
Use assertions
Use bindings
Use resource templating
Use operation outputs
Use try, catch and finally
Control your timeouts
Control your cleanup
Next steps
Additional resources
CI/CD
CI/CD
GitHub action
Configuration
Configuration
Configuration file
Command line flags
Options
Options
Timeouts
Discovery options
Execution options
Namespace options
Templating options
Cleanup options
Deletion options
Error options
Reporting options
Multi-cluster options
Pause options
No cluster options
Label selectors
External values
Sharding
YAML anchors
Test
Test
Explicit approach
Conventional approach
General concepts
General concepts
Inheritance
Test namespace
Bindings
Templating
Outputs
References
Scenarios
Operation checks
Advanced
Advanced
Test
Test
Test step
Test step
Try
Catch
Finally
Cleanup
Step template
Step template
Operations
Operations
Apply
Assert
Command
Create
Delete
Error
Patch
Script
Sleep
Update
Kubectl helpers
Kubectl helpers
Describe
Events
Get
Pods logs
Proxy
Wait
Reference
Reference
Built-in bindings
JSON schemas
APIs
APIs
v1alpha1
v1alpha2
JMESPath
JMESPath
Functions
Examples
Examples
abs
add
as_string
at
avg
base64_decode
base64_encode
ceil
compare
concat
contains
divide
ends_with
env
equal_fold
find_first
find_last
floor
from_items
group_by
items
join
json_parse
keys
label_match
length
lookup
lower
map
max
max_by
merge
min
min_by
modulo
multiply
not_null
object_from_lists
pad_left
pad_right
parse_json
parse_yaml
path_canonicalize
pattern_match
random
regex_match
regex_replace_all
regex_replace_all_literal
replace
replace_all
reverse
round
semver_compare
sort
sort_by
split
starts_with
subtract
sum
time_add
time_after
time_before
time_between
time_diff
time_now
time_now
Table of contents
Signature
Description
Examples
time_now_utc
time_parse
time_since
time_to_cron
time_truncate
time_utc
to_array
to_boolean
to_lower
to_number
to_string
to_upper
trim
trim_left
trim_prefix
trim_right
trim_space
truncate
type
upper
values
wildcard
x509_decode
x_k8s_exists
x_k8s_get
x_k8s_list
x_k8s_resource_exists
x_k8s_server_version
x_metrics_decode
zip
Command Line
Command Line
chainsaw
chainsaw assert
chainsaw build
chainsaw build docs
chainsaw completion
chainsaw completion bash
chainsaw completion fish
chainsaw completion powershell
chainsaw completion zsh
chainsaw create
chainsaw create test
chainsaw docs
chainsaw export
chainsaw export schemas
chainsaw lint
chainsaw migrate
chainsaw migrate kuttl
chainsaw migrate kuttl config
chainsaw migrate kuttl tests
chainsaw renovate
chainsaw renovate config
chainsaw test
chainsaw version
Examples
Examples
Work with CRDs
Work with events
Work with label selectors
Inline resources
Concurrency control
Check Kubernetes version
Non-resource assertions
Pass data to tests
Multi-cluster setup
Negative testing
Test command output
Guides
Guides
Lint tests
Migration from KUTTL
Building test docs
Community
Community
Contributing
Reporting a bug
Reporting a docs issue
Requesting a change
Making a pull request
Table of contents
Signature
Description
Examples
time_now
¶
Signature
¶
time_now()
Description
¶
Returns current time in RFC 3339 format.
Examples
¶
TODO
Back to top