-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New function to deal with timestamp values #663
Comments
@skayliu thank you for raising this up. Let's clarify the expectation first. You need a new built-in function to convert a Unix timestamp into a date-time value. Correct? Something like:
Note that there is an example of how to convert a date-time value into a Unix timestamp here. We can do the reverse operation with the following expression: (
This can be a workaround until there is a new function available. |
@saig0, Yes, that's what i want.
Thank you, i'll give a try. |
@skayliu super. 👍 I updated the description of the issue and described the new functions to handle Unix timestamps. |
I moved the issue to the backlog because I don't plan to work on this issue soon. There is a workaround available. The issue is open for contributions. 🚀 |
@saig0 When with the Here is my test steps. MySQL table DDL:
Modeler: open this bpmn file in Camunda Modeler
dataToInsert: The key point here, when with the Before:
Start current diagram with this payload:
Variables: In Zeebe-Play we can see variables like this.
Incidents: And a incident raised.
After:
Start current diagram with this payload:
Variables: In Zeebe-Play we can see variables like this and the record inserted successfully
Query mysql table:
|
Is your feature request related to a problem? Please describe.
When using the mysql connector (related: zeebe-play#196), I got a timestamp value of
1686327521524
or1686327521
, I want to get the datetime of2023-06-10 00:18:41
or2023-06-10T00:18:41
so that I can insert the datetime into mysql table.Describe the solution you'd like
New built-in functions to handle Unix timestamps.
Signatures:
Examples:
Related issues
The text was updated successfully, but these errors were encountered: