2,355 questions
0 votes
1 answer
69 views
Error while replacing a variable with a logic in UNIX
I am running below in UNIX, UOW="20251013115437" echo ${UOW} UOW_STR=${UOW:0:4}"-"${UOW:4:2}"-"${UOW:6:2}" "${UOW:8:2}":"${UOW:10:2}":"${UOW:...
3 votes
1 answer
112 views
IMAGE_FILE_HEADER.TimeDateStamp not a Unix epoch on certain DLLs
IMAGE_FILE_HEADER.TimeDateStamp is described as: The low 32 bits of the time stamp of the image. This represents the date and time the image was created by the linker. The value is represented in the ...
1 vote
1 answer
74 views
Performances for retrieving raw timestamp values
In a node.js application we manipulate dates and times as unix timestamps UTC (directly as numbers). These timestamps are stored in postgresql in timestamp columns (not using timezone because ...
0 votes
1 answer
116 views
Plotly date display using UNIX timestamp data in browser timezone
My data comes as a Pandas DataFrame with a datetime index, that is generated from UNIX timestamps. I would like to display the data in a Plotly chart in the browser's timezone, but haven't figured out ...
0 votes
0 answers
60 views
Convert Unix timestamp returned from API in Python Flask app
I have got a Python Flask app that will get data from API and pass it to html template. On html template I have following and I would like to convert the "insertionTime" from Unix timestamp ...
-2 votes
1 answer
54 views
getting NULL when i am trying to Record the response time [duplicate]
I am using this to get the response time GREATEST(0, TIMESTAMPDIFF(SECOND, createdAt, replied_at)) AS response_time, But its showing NULL, Given that createdAt and replied_at is in UNIX timestamp ...
-1 votes
1 answer
80 views
Why does PHP's microtime() sometimes go backwards?
Have a strange issue where PHP's microtime() sometimes goes back in time when doing http requests. And it's not a "floating point error" either, it can be as much as 0.8 seconds seconds ...
1 vote
1 answer
79 views
Is there other ways to convert Unix timestamp to local time in javascript with openWeather API timezone involved?
I’m using the OpenWeather API to create a simple web page that displays dynamic weather data, including sunrise and sunset times. The API provides these times in seconds (Unix timestamp), and I’ve ...
-2 votes
1 answer
68 views
How to convert the Integer timestamp to date format and compare with LocalDateTime.now? [duplicate]
I have receive a timestamp in request as Integer format target_time = 1728962183 Then I want to use it to compare with LocalDateTime.now() to decide the code flow. Exp: if(target_time < ...
0 votes
2 answers
659 views
Ahk v2 current Unix Timestamp
I'm trying to get the current timestamp, which is the number of seconds past from 01/01/1970. But it seems like there isn't a function like that in ahk like some languages do. I tried to do research ...
0 votes
3 answers
86 views
Python datetime output +3GMT
Please help me to improve my code. I'am trying to calculate current time minus 3 minutes, and output should be in Unix Timestamp +3GMT But instead it prints me utc time (+ 0) import datetime import ...
0 votes
1 answer
48 views
Datetime value lost before trigger modification
I'm creating an authentication server with MySQL as the database. I'm using a table to store the refresh tokens, it looks like this: CREATE TABLE IF NOT EXISTS REFRESH_TOKEN ( TOKEN VARCHAR(512) ...
-5 votes
1 answer
292 views
golang time.Time binary encode decode inconsistency
Im doing data serialization/deserialization in Go, what I noticed is, time.Time objects are different when you serialize deserialize them. I tried couple things, such as converting timestamps to UTC ...
0 votes
0 answers
59 views
Can we use SFTP GET command to retrieve the latest file from the directory? [duplicate]
I looked for a solution to retrieve the latest file from the directory and found in google in this very website. latest_remote_file = $(ssh username@server_name 'ls -tr /path | tail -n 1') scp -r ...
0 votes
1 answer
52 views
ls -rt | tail -n 1 does not work inside theJCL - piping symbol causing issue
I am facing a very strange problem, this command ls -rt | tail -n 1 works in linux server in the putty, but the same command when I give inside the JCL, for some unknown reason doesn't work. //SYSUT1 ...