Add citrus:unixTimestamp() to Citrus functions
See original GitHub issueUser story As a test developer, I want to be able to obtain the current unix timestamp as a Citrus function to be able to parameterize payload templates.
Additional Information
{
"timestamp": "citrus:unixTimestamp()"
}
Should result in the following after processing:
{
"timestamp": "1573045235"
}
It would be great to have a switch implemented, causing the return value to be in milliseconds instead of seconds.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Spark SQL - Working with Unix Timestamp
In this Spark article, you will learn how to convert or cast the DataFrame column from Unix timestamp in seconds (Long) to Date,...
Read more >Timestamp functions | BigQuery
CURRENT_TIMESTAMP() produces a TIMESTAMP value that is continuous, non-ambiguous, has exactly 60 seconds per minute and does not repeat values over the leap ......
Read more >How do I add 24 hours to a unix timestamp in php?
Unix timestamp is in seconds, so simply add the corresponding number of seconds to the timestamp: $timeInFuture = time() + (60 * 60...
Read more >Unix Time Stamp - Epoch Converter
Epoch and unix timestamp converter for developers. Date and time function syntax reference for various programming languages.
Read more >Impala Date and Time Functions
The setting also applies when you CAST() a BIGINT value to TIMESTAMP ... ADDDATE(TIMESTAMP / DATE date, INT / BIGINT days): Purpose: Adds...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bbortt close please
Hi @akuz0, I have reviewed your PR. there seems to be a little bit of code missing to make this work (the build fails). but it looks very good in general! let me know if you need some hints, I have not looked into it further (apart from the commends I made).