Questions tagged [timestamp]

A timestamp is the time at which an event is recorded by a computer system. The timestamp term may also refer to Unix Time or to the timestamp data type.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
27 views

sp_get_query_template doesn't work with ODBC timestamp

I have the following query: SELECT COUNT(*) FROM ( SELECT DISTINCT USER_NAME FROM LICENSE WHERE RESTRICTED_USE = 'T' AND ALLOCATED = 'T' UNION ALL SELECT USER_NAME FROM ...
Fausto Galati's user avatar
0 votes
0 answers
10 views

Adding a timestamp when menu item is clicked

I am creating a clocking in button for our organisation in google sheets. When the menu item 'Clock in' (function: "Clockin") is selected, it adds in a new row, and I want it to add in the ...
Miss Cairo's user avatar
0 votes
0 answers
40 views

Calculating the timestamps in a pandas dataset with duplicate values

I have a dataset containting IP, URL ID and timestamp columns. The IP column contains various IPs and each IP has one or multiple URL IDs as targets. Multiple IPs can share the same URL as the target ...
Niloofar Nazemi's user avatar
0 votes
1 answer
42 views

Trying to set a date (Now) when a value is entered in a certain range

I'm trying to get a date (now) in a cell when a value is added in other cell. I'm looking to work these by Column. One gets the value and the other one should get the date. This is being applied to a ...
Ismael Eduardo Cortez Soto's user avatar
0 votes
1 answer
39 views

Mac absolute time from Hex

I'm trying to convert a time stamp from an iPhone database that's stored in Hex as part of a Python script. I have searched online and been unable to find how it's done. An example of the time stamps: ...
Crtaylor26's user avatar
0 votes
1 answer
23 views

Create timestamp based on a keyword

I would like to make a function that will create a timestamp whenever a particular keyword is mentioned within a variable I created. The variable is meant to get the last row and column within a sheet....
Ademola 's user avatar
1 vote
2 answers
80 views

How to find Start date from time elapsed as percentage and End date in java

i have below code End date = 31 oct 2024 and elapsedPercentage is 10% of total duration on current date as per above params expected Start date value is 12 aug 2023 but i am getting 07 Dec 2023 ...
Dandy's user avatar
  • 479
0 votes
3 answers
28 views

Apps Script Automatic timestamp when a tab gets updated

So I'm trying to create a script that can apply to several tabs in my spreadsheet file and will automatically update the timestamp in each individual tab when something in that tab is updated/changed. ...
marybr555's user avatar
0 votes
1 answer
29 views

Convert string to timestamp in pyspark

I am trying to convert the date format mmddyyHHmmss(is a string data type in pyspark) to timestamp in pyspark. I tried the below code, but I am getting nulls. date_string="09082023123456" ...
user2104898's user avatar
0 votes
1 answer
53 views

Different PTS values in ffmpeg and MP4 CTS values obtained using ctts and stts

I have been studying PTS values in .mp4 media files. PTS for video stream can be extracted from ffmpeg CLI using ffmpeg -hide_banner -i -vf "showinfo" -f null - For a sample .mp4 I have ...
userDtrm's user avatar
  • 547
0 votes
0 answers
27 views

Is there a function to extract the time part of a datetime variable in Trino SQL?

Is there a function to extract the time part of a datetime variable in Trino SQL, including nanoseconds? --AND/OR-- Is there a corresponding comparison operator that allows comparison to just the time ...
Misha's user avatar
  • 113
0 votes
1 answer
24 views

How to get the full timestamp values from Oracle DB to Excel

I have a column value 21-Sep-23 06.34.45.676676888 AM I need fetch exactly same as this values. I have tried below query to_char(Date,'DD-MON-YY HH:MM:SS AM') as Date Which will give below result ...
Balaji R B's user avatar
0 votes
1 answer
35 views

Timestamp based on keyword within an array

I would like to make a function that will create a timestamp whenever a particular keyword is mentioned in a specified array. For example, if the array included the word "Item 1" in a cell, ...
Ademola 's user avatar
0 votes
1 answer
81 views

How can I manipulate data that comes from a csv file in java?

I am trying to build a program in spring that reads files and does calculations with the data that comes from the files. What interests me more from the file is Timestamp, Code and State. I want to ...
user avatar
1 vote
1 answer
38 views

Understanding Unix Timestamps and Time Zone Conversion in Python

I'm having trouble understanding Unix timestamps and time zone conversions in Python. I have a UTC datetime string ('2023-09-20T05:04:54') and latitude/longitude coordinates (around Toronto). I need ...
Qinghuan Li's user avatar
0 votes
1 answer
49 views

How to convert a timestamp in Grafana from a formatted string to epoch milliseconds and create a time range URL parameter?

I am currently working with Grafana and trying to create a link that redirects to another dashboard with a specified time range, which is 5 minutes before and after a certain timestamp. I have the ...
Luis Falke's user avatar
0 votes
0 answers
6 views

TaskManager Trace with ->Remove-TimeStamp, trying to understand

Looking at the TaskManager logs I see the following traces: SlidingEventTimeWindows, Extract-Timestamp -> Timestamps/Watermarks -> Remove-Timestamp -> _stream_key_by_map_operator I would like ...
Oscar Legat's user avatar
-1 votes
0 answers
57 views

Convert Timestamp to Given Time Zone in Java [duplicate]

Timestamp timestamp = new Timestamp(1375315200000L); TimeZone tz1 = TimeZone.getTimeZone("GMT-1"); TimeZone tz2 = TimeZone.getTimeZone("GMT+4"); Timestamp convertedTimestamp = func(...
Hang Wu's user avatar
  • 117
2 votes
2 answers
44 views

utc time string convert to Unix timestamp, and then convert back to utc date time string. But the result is not matched with the original one

I expect 'utc' and 'utc_str_back' should be the same time, but result is diferent. Here is the code: #input utc='2023-09-20T05:04:54' #calculation utc_time = datetime.strptime(utc, '%Y-%m-%dT%H:%M:%S'...
Qinghuan Li's user avatar
0 votes
0 answers
71 views

drizzle-orm error: column "created_at" cannot be cast automatically to type timestamp without time zone

This is my schema.ts file export const messages = pgTable("messages", { id: serial("id").primaryKey(), chatId: integer("chat_id") .references(() => chats.id) ...
Naveen's user avatar
  • 29
-1 votes
0 answers
9 views

Convert from Smartmeter readouts to hourly consumption

I have the following data structure resulting from the smartmeter reader timestamp readout 2023-04-13 08:49:06 5232 2023-04-13 08:59:07 5232 2023-04-13 09:29:08 5233 2023-04-13 10:19:09 5233 ...
bongo's user avatar
  • 9
0 votes
0 answers
19 views

VBA Filter for Yesterday after a Specific Time until Today at a Specific Time in two Different Columns

I've been trying this for hours now with no luck. I have a large data set. In column P I have only dates (mm/dd/yyyy). In column Q I have the time Stamp (hh:mm:ss). I'm trying to write a code that ...
robis1985's user avatar
0 votes
2 answers
77 views

How to convert timestamp into human readable time string (for example "one minute ago") in Java [duplicate]

I am trying to create a chat application in android studio. I have a timestamp, say this 1694603269045 Now I want to convert this timestamp into human readable way like one minute ago or one hour ago....
Newbie_programmer's user avatar
0 votes
1 answer
37 views

how to display Firestore Timestamp in Month/ Year format in angular?

I am getting data from firestore collection and displaying on a chart, however as the date is in timestamp, it is displaying as such. I want to render as MM/YYYY , so how can I do it? const date = ...
user17449555's user avatar
0 votes
0 answers
6 views

To get close value of script of specific date

The following piece of code didnt work. date_jun21 = input.time(title="Summer Solstice",defval=timestamp("2023/06/21 00:00 +0000")) baselvl = request.security(syminfo.tickerid, ...
Dilip Avadhani's user avatar
0 votes
1 answer
21 views

Get DocTimeStamped from PDF in nodejs

enter image description here In the server, this pdf is timestamped. I want to get the last checked time. It's the DocTimeStamp. My code works for the normal signature but not work with the doc ...
Brian Hoag's user avatar
-1 votes
0 answers
11 views

Python - Can I bulk rename images based on geotags (taken on iPhone) for physical geographical location, date, time?

I have thousands of images taken on a modern iPhone which I've exported to Windows. Have attempted using Python (Pillow/PIL) to do this, though having issues and need a new approach. Ideally, the ...
James.Anth's user avatar
1 vote
1 answer
31 views

Time only: cast to (or extract from) a timestamp its time part, or cast a long to a time (but not to a datetime or a timestamp), with Spark

From a Dataset, I'm executing this request: select type, count(*) as nombre, max(date) as derniere_course, round(avg(distance), 1) as distance, avg(allure_moyenne) as allure_moyenne, cast(...
Marc Le Bihan's user avatar
0 votes
3 answers
38 views

How to find and extract a timestamp on a HTML-Website with Python/BeautifulSoup?

I'm trying to write a bot that sends an email when there is a warning from the German Weather Service (Deutsche Wetterdienst DWD). This bot will be implemented in Python on my Raspberry Pi. I want to ...
Craven's user avatar
  • 3
0 votes
0 answers
19 views

How can I get a custom time

I tried these code to pass in a custom time as a Timestamp type import pandas as pd import numpy as np x=pd.Timestamp(1/12/2020) print(x) y=pd.to_datetime(x,unit="s") print(y) I ...
Yana Ghanim's user avatar
1 vote
1 answer
28 views

How to deal optionnal hour format in pandas to_datetime?

I need to deal with a Dataframe of string (a run course btw) where people finish before one hour so it is formated "%M:%S" eg: "54:45" and some people finish after 1 hour, so the ...
Samovian's user avatar
  • 185
0 votes
0 answers
29 views

How can I edit the timestamp on remix to enable time acculation

I'm creating an application, that tracks users' listening time, and transfers a reward when they pass the average time threshold, how can I edit timestamp on remix to ease testing. function ...
Santos's user avatar
  • 9
-1 votes
0 answers
33 views

Spring Data JPA - TimeStamp Precision - Works on Mac - Fails on Linux

Spring boot 3 Java 20 MySql/H2 @CreatedDate @Column(nullable = false, updatable = false) private LocalDateTime createdDate; I have this createdDate field which gets populated by JPA on save. ...
Crazy's user avatar
  • 1
0 votes
0 answers
39 views

Pyautogui screenshot & schedule not correct

I have the below code saved down as a Python script which I have scheduled in Windows to run at specific times - 12:15 am and 5:15 am. import pyautogui from PIL import ImageGrab from functools import ...
ichoz's user avatar
  • 25
0 votes
0 answers
25 views

Teradata - Insert statement works for me but not colleague - Invalid timestamp

I have a SQL script I use to import data using Teradata SQL Assistant. It works for me but not for my colleague: they get "Error importing batch records 1 - 20: [6760] Invalid timestamp." I ...
MisterM2402's user avatar
0 votes
1 answer
41 views

Calculate from timestamp field in Laravel

I have a timestamp field with value like 2023-08-30 15:23:03. Now I would like to calculate whether this values is more than 2 minutes from now or not. How can I do that ?
abu abu's user avatar
  • 6,597
-1 votes
3 answers
43 views

Applying timezone to the timestamp in Python

I have timezones in a format like this: "RTZ 2 (зима)" This is Cyrillic as you can see. I need to apply this to the timestamp. I know that the pytz module can create a tz subclass from the ...
Mercury1998's user avatar
2 votes
1 answer
73 views

Timestamp with time zone offset

The goal is to get current local timestamp in specific format with added time zone offset. E.g.: 2023-08-28T03:51:46.222+09:30 I cannot find a Spark function which would return time zone offset with ...
ZygD's user avatar
  • 22.2k
1 vote
1 answer
42 views

How to handle date and time to convert to TimeStamp format

I need to be able to convert to DateTime format a date and time like the following: '08/23/2023 09:30:00' Thanks in advance.
Jorge's user avatar
  • 13
1 vote
1 answer
48 views

Oracle current_timestamp provides different values in same session

We have a table defined as: CREATE TABLE tokens ( token VARCHAR2(36) NOT NULL PRIMARY KEY, username VARCHAR2(60) NOT NULL, insertedOn TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); If we connect to the ...
hijack's user avatar
  • 311
-1 votes
1 answer
32 views

type for time field in Golang + mongodb

I have struct: type TripFeedback struct { ID primitive.ObjectID `json:"_id" bson:"_id,omitempty"` UserID string `json:"user_id" bson:"...
Neighbourhood's user avatar
0 votes
0 answers
36 views

Typegoose v10 timestamps: true model option not creating `createdAt` and `updatedAt` properties when creating an object

I'm trying to create a model for User and I want to add createdAt and updatedAt properties automatically whenever an object is created or updated(this need to happen even if the object is created ...
Avishka Dambawinna's user avatar
1 vote
2 answers
85 views

Timestamp#toInstant TimeZone behaviour

I'm currently having difficulties to convert a java.sql.Timestamp to a LocalDateTime. I understand that Timestamp (and Date) do not know any time zones. I have a Timestamp representing an UTC time. I ...
MKorsch's user avatar
  • 3,832
0 votes
0 answers
31 views

Confluent Kafka Timestamp Converter value issue

I am using Apache Kafka with Confluent Connect v7.3.2 platform and a MongoDB Connector deployed as Sink Connector in order to stream messages with 2 timestamp fields into a Collection. These values ...
Guy_g23's user avatar
  • 316
0 votes
0 answers
21 views

How to use a microsecond precision timestamp field as a cursor with Prisma?

I have creted a field that uses microsecond precision to be used as a cursor when paginating: createdAt DateTime @unique @default(now()) @db.Timestamp(6) but my problem is that the Date type only ...
Adam Arold's user avatar
  • 29.3k
0 votes
0 answers
24 views

How do I view "docker logs" in a specific time range?

I'm trying to extract logs from a Docker container for a specific time range. I know about the --since option but this is not suitable to me as I have a lot of logs that I do not want to view. Is ...
spatty's user avatar
  • 1
0 votes
0 answers
17 views

How To Storing The Frame Range In Python?

so i have a project to make a simple media player with detection and recognition feature but i get stuck with with the system do recognition process it will store a frame when the system detect adn ...
Steaven Davidson's user avatar
0 votes
0 answers
44 views

MariaDB -DateTime/TimeZone Question - Not converting to correct Timezone

Apologies for what may be a silly question (I am very new to MariaDB!) I am working with a web dev that is sending records from wordpress gravity forms through zapier to my mariadb database. The web ...
threw000's user avatar
0 votes
0 answers
67 views

When running profile_report in ydata_profiling (used to be pandas_profiling) how do I fix the 'to_pydatetime' error?

I am trying to profile_report in ydata_profiling and I get the following error: TypeError: descriptor 'to_pydatetime' for 'pandas._libs.tslibs.timestamps._Timestamp' objects doesn't apply to a '...
Dev_Reka's user avatar
-1 votes
1 answer
194 views

ROS2 message topics time stamps handle and syncronisation?

I successfully build and run a ROS2 humble node in C++. I subscribe to twp topics , namely camera-image which is /camera/image and imu which is /drone/imu. Then im calling the ORB_SLAM3 method and ...
Macedon971's user avatar

1
2 3 4 5
272