Questions tagged [datetime]
A DateTime object in many programming languages describes a date and a time of day. It can express either an instant in time or a position on a calendar, depending on the context in which it is used and the specific implementation. This tag can be used for all date and time related issues.
datetime
71,240
questions
-1
votes
1
answer
54
views
Create TimeLine field with PyQt5
I need to develop a program to enter time reports. What I do is very similar to time graphics.
I was only able to implement scaling, shuffling and pseudo-infinity fields. The main task is to somehow ...
0
votes
1
answer
53
views
What is the meaning of: Pandas data cast to numpy dtype of object. Check input data with np.asarray(data) and how can be solved?
I'm trying to model a time series for a stock price with the following code:
import opendatasets as od
import numpy as np
import pandas as pd
import plotly.graph_objects as go
from plotly.subplots ...
-2
votes
3
answers
30
views
Converting time and then calculating duration
I am working in Python and I have a .csv file that I've imported with two columns: a start date and and end date. I need to be able to convert both dates to a readable format in python so that it can ...
1
vote
1
answer
28
views
.NET c#: Convert string (ej. "Mar 26, 2021 at 7:17 PM") to DateTime object
I am trying to create a DateTime object from strings like
Dec 1, 2020 at 11:03 AM
Mar 26, 2021 at 7:17 PM
Oct 21, 2020 at 3:07 PM
I am using this but it throws error:
string format = "MMM d, ...
0
votes
0
answers
50
views
Trying to work with the ComsosDb Change Feed Reader on an Azure function, how do I define the StartFromTime parameter?
I have an Azure Function that looks like this:
[Function("MyCosmosDBTrigger")]
public async Task Run([CosmosDBTrigger(
databaseName: "myDatabase",
containerName: "...
0
votes
1
answer
21
views
SQL QUERY reporting production yield by time range Group by
Hi I am new to the SQL world. I want to calculate the system on and off time and total production yield of each run time. Thanks.
Here is exmple of the raw data.
timestamp
system status
yield lbs/s
...
0
votes
1
answer
33
views
SystemVerilog module that stores date and time
VHDL does not have any method to get system date and time until VHDL 2019. This means that if I need to store the FPGA design synthesis time when an FPGA design is compiled, or when simulation is run, ...
-1
votes
0
answers
40
views
How to return only the first date of the patient's measurement? [duplicate]
I have a patient list and I have the date and time when a specific procedure was done. I need to return the patients and only their first datetime when the procedure was performed during the same ...
1
vote
2
answers
52
views
Pandas: Supporting a time past 24:00:00 [duplicate]
I'm trying to manipulate a dataset that contains stop times of trains in stations. This data only contains the times and not the dates. In this dataset, there can be times that are past 24:00:00. For ...
0
votes
1
answer
19
views
Is there a way to relate a Calendar lookup table and a 24hr Time lookup table to 2 different tables on more than 1 column in PowerBI?
I have 2 tables, encounters table and procedures table, that both have 2 columns containing a date data type and 2 columns containing a time data type. I have created a Calendar lookup and a Time ...
-8
votes
0
answers
120
views
Pandas plotting multiple dataframes - first df deprecates datetime x-axis to show only %H:%M and not %m/%d %H:%M:%S [closed]
I am trying to input a single .csv file that contains data from different packet streams (hence, different time values). I created a dataframe for each time and the data points/columns from each ...
1
vote
0
answers
28
views
PrismaORM shifting the UTC time from my db to the timezone of my nestJs application
I have records with timestamp fields in mySql DB. Like this: 2024-06-26T19:00:00.000Z
But when I retrieve these records with prisma, they are converted back to my timezone, so the UTC time in database ...
0
votes
2
answers
49
views
How to make it so a DatePickers Date cannot start before another DatePickers Date in SwiftUI
I have two pickers for workoutStartTime and workoutEndTime that default to Date.now but currently the user can set the end time earlier than the start time. How do you prevent this?
@State private var ...
1
vote
1
answer
40
views
PowerBI Create Table with date AND time with 1 second increment
I am sure you can help me out as I am unable to figure out an easy solution.
Goal:
I would like to create a table with date and time and 1 second increment
Initial setup:
2 datetime tables
min/max ...
1
vote
1
answer
55
views
What's the best way to calculate the weekday?
I have time series data with a TEXT timestamp formatted as DD.MM.YYYY HH:mm:ss.sss (.sss = ms).
I extract each component from the TEXT timestamp field and compose an ISO formatted timestamp as YYYY-MM-...