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,211
questions
0
votes
1
answer
13
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
29
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-...
0
votes
1
answer
15
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-...
1
vote
1
answer
23
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 ...
0
votes
0
answers
11
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&...
0
votes
2
answers
24
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 ...
0
votes
0
answers
49
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....
-3
votes
0
answers
45
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 ?
...
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 ...
-1
votes
0
answers
33
views
Finding mean of time interval [closed]
I am using R for a practice case study. I am having issues with returning the mean for ride_length which is a time integer in min/sec.
I started with MS Excel and created two new rows *ride_length and ...
-3
votes
1
answer
47
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 ...
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 ...
-4
votes
0
answers
62
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 &...
1
vote
1
answer
23
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 ...
0
votes
0
answers
67
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....