question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add citrus:unixTimestamp() to Citrus functions

See original GitHub issue

User 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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
akuz0commented, Jul 28, 2022

@bbortt close please

1reaction
bborttcommented, Jul 10, 2022

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found