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.

datetime
3 votes
1 answer
44 views

error while converting broken time into correct date time with timezone and dst using HowardHinnant's date library

error while running program with Howard Hinnat library My program is as following #include "date/tz.h" #include <iostream> #include <sstream> int main() { // Example broken-...
tech1978's user avatar
1 vote
1 answer
75 views

In Power Query, how do I calculate total time worked over multiple days based on work shift patterns and excluding weekends?

Hello world of Stack Overflow. Thank you for your attention. I have 2 tables with the following data in Power Query, shown below. Table 1: Shift Patterns Day Early Start Time Early End Time Late ...
Mr Tea's user avatar
  • 23
0 votes
0 answers
15 views

Datetime format and time data not matching timestamp format errors in traceback log =

Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in \_run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.7/runpy.py&...
nandos96's user avatar
0 votes
2 answers
37 views

Terraform Quotes Syntax for Var + formatdate

Terraform = v1.8.2 AWS Provider = >= 5.30 from hashicorp/aws Trying to use terraform to create an AWS resource name to include the date+time it was created. This is to serialize the resource for ...
PSn00b's user avatar
  • 25
0 votes
0 answers
61 views

R - Correct datatype but date is "NA"

Updated: 7/6 10:45am pdt The data is loaded via combining two files. Here are the specific steps I used. cdf <- list.files(path = '/cloud/project/cap1/Capstone-dnb, pattern = '\\.csv$', full....
Daniel Boggs's user avatar
-3 votes
0 answers
50 views

how does the DateTime.now().microsecondsSinceEpoch exactly work in dart

for (int i = 0; i < 3; i++) { final key = DateTime.now().microsecondsSinceEpoch; newTickets["$phoneNumber#$key#$username#${i + 1}"] = result.isNotEmpty ? ...
mohammadmnyer's user avatar
0 votes
0 answers
18 views

Error making appointment: FormatException: Invalid date format in Flutter app using Dio for API requests

I am working on a Flutter application that involves making appointments by selecting a date and time. The appointment details are then sent to the backend via an API request. However, I'm encountering ...
hamsoace's user avatar
  • 117
-3 votes
1 answer
54 views

How can I fix datetime error when trying to use the now syntax?

I am trying to run the code below but when I do, I keep getting errors, i managed to change the import syntax from import datatime as dt to from datetime import date time as dt This has worked but ...
David's user avatar
  • 31
1 vote
1 answer
41 views

Conflicting functions - clock not working.Please can you join me in the right direction

im new to coding. Ive tried to find the answer online but I just can't see what's happening with my code. I want to make a clock. It will show different time zones. When I click my second function the ...
Simon Andrews's user avatar
-4 votes
0 answers
74 views

Convert duration from or to a point in time to human units (including months and years) [closed]

Similar to Convert time interval given in seconds into more human readable form, but not identical: I already have an algorithm to convert a duration given in seconds to human-readable units, like &...
U. Windl's user avatar
  • 4,073
1 vote
1 answer
27 views

Showing percetage of the year in LaTeX

I'm trying to make a contract in LaTeX, where I express the responability of a property the year is signed. To do so, I need to calculate de percentage of the year that has already passed. I would ...
user24817815's user avatar
0 votes
0 answers
71 views

How to guard against DateTime code breaking on Azure

I recently ran into an issue with the following line of code Linq: var directions = unitDirections.Directions .Where(d => Convert.ToDateTime(d.DueDate) > DateTime.Today || (Convert.ToDateTime(d....
Norbert Norbertson's user avatar
-1 votes
0 answers
28 views

How can I overplot a line plot over a seaborn heatmap?

I have two Pandas dataframes. One is called "swepam" and the other is called "ssn_monthly_mean." Both dataframes have a column of different numpy.float64 objects and a column of ...
jrmact's user avatar
  • 21
6 votes
1 answer
96 views

Summing Values Based on Date Ranges in a DataFrame using Polars

I have a DataFrame (df) that contains columns: ID, Initial Date, Final Date, and Value, and another DataFrame (dates) that contains all the days for each ID from df. On the dates dataframe i want to ...
Simon's user avatar
  • 437
2 votes
2 answers
79 views

.NET difference in DateTIme parsing

I'm using .NET 8 and I noticed that DateTime strings from requests are parsed differently in the query parameters and in the body. I have made this example request to show the issue: POST /api/Save?...
Ben5's user avatar
  • 787

15 30 50 per page