Skip to main content
The 2024 Developer Survey results are live! See the results

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.

0 votes
0 answers
28 views

How can I avoid blank spaces in python's pyplot?

I have a pandas dataframe with thee columns 'SystemState_InitDate', 'SystemState_FinalDate' and 'State_Desc'. I want to plot a chronogram. To do that, I have generated the following function for idx, ...
slow_learner's user avatar
0 votes
2 answers
63 views

JS skips 2023-10-29 when generating data range

I am trying to generate a sequence of dates. However, when generating JS, it constantly misses October 29, 2023. Could someone explain what could be the reason? In this post someone noted that on this ...
Dreamer DeLy's user avatar
0 votes
0 answers
32 views

Adding elapsed time in seconds to an approximate date in Excel over multiple datasets in a single sheet

I am not super great at Excel, have never ventured into VBA, don't know how to do macros, and have very, very limited programming knowledge, so please excuse my ignorance. I have a bunch of data in ...
user25914754's user avatar
0 votes
1 answer
42 views

How to get the time zone from datetime with zoneinfo libraries in Python?

I have a code where I get date and time of different parts of the world with the datetime and zoneinfo libraries in Python. I am able to extract the dates and hourse separately in day, month, year, ...
Jdavid_Ar08's user avatar
0 votes
1 answer
55 views

Find time stamp from which a dataset becomes monotonic

I have a dataframe which contains an altitude column. In the beginning the altitude remains the same in terms of GPS signal fluctuations. At some point the altitude changes, when the GPS receiver is ...
Swawa's user avatar
  • 173
1 vote
1 answer
52 views

How Would One Go About Creating A Graph Like This In Plotly/Pandas?

I would like to recreate following image in Plotly and Pandas. but I'm not sure how. I have looked into using Gantt Graphs but every time I see one the timeline is going along the x axis and not the ...
Jack Finnegan's user avatar
0 votes
1 answer
14 views

Get wrong time in mui/x-date-picker

I try to convert date from date picker to iso format but always get 3 hours behind of my time.How can I resolve it? This is my code: 'use client'; import React, { useEffect, useState } from 'react'; ...
Konstantin 's user avatar
0 votes
1 answer
18 views

Assigning a var to ZoneInfo("US/Eastern") at the start and re-using it in perpetuity without daylight saving issues?

I use the same timezone repeatedly in my python code when creating datetime objects. So far I've just been creating a new ZoneInfo object each time, similar to this: dt = datetime.now(tz=ZoneInfo(&...
Yogi88's user avatar
  • 5
0 votes
0 answers
27 views

How can I format tickers for hh:mm in Python matplotlib over a fixed period

I am fairl amateur to programming, but I'm trying to create a python widget that can display the selected photoperiod for a controlled environment growhouse, based on the current time. A GUI would ...
Lewis Penden's user avatar
0 votes
1 answer
56 views

Getting Datetime format column to export into excel without H:M:S

I am comparing two excel sheets for employees. Its the same data, just one week apart. It then highlights the changes of pay columns, if any exist. The code functions but the excel sheet that it ...
NKME's user avatar
  • 29
1 vote
1 answer
32 views

New column calculation error based on datetime and timedelta column based on two dataframes

I have a python dataframe df_A which index column contains integer data and represent a time stamp in seconds time row (it might be not have a strictly monotonic gradient). And I have another ...
Swawa's user avatar
  • 173
0 votes
1 answer
45 views

react big calander onNavigate solution

I have modified react-big-calander load events specifically for time ranage when onNavigate triggers. Now it's not navigating to specific date when trying to navigate by clicking date header in month ...
Axen_Rangs's user avatar
2 votes
2 answers
75 views

Sum POSIXct POSIXt values from a column

I have one data frame with more than 1000 rows, and I have one column duracao which I want to sum the values that have there HH:MM, and resulting also the value as HH:MM. df <- data.frame(duracao = ...
Érika Soares Coelho's user avatar
0 votes
0 answers
55 views

MongoDB Date Conversion Problem for "London/Europe" TimeZone in Azure Function C#

In my Azure Function, I configured environment variable WEBSITE_TIME_ZONE as Europe/London, hosted this on Azure Linux App Service Plan with "North Europe Zone" and in my base class, I ...
Unknown Coder's user avatar
4 votes
1 answer
60 views

fread column with only NA values as POSIXct returns warning and a character column

Update: I have opened an issue for this: https://github.com/Rdatatable/data.table/issues/6208 I would like to read a column of a NA values as POSIXct using fread. I would expect this to work: library(...
Markus's user avatar
  • 57

15 30 50 per page
1
3 4
5
6 7
4751