Skip to main content

Questions tagged [datetime]

DateTime objects in many programming languages describe an instant in time, expressed as a date and time of day. Use on questions about reviewing code involving date/time logic.

Filter by
Sorted by
Tagged with
4 votes
2 answers
126 views

Task: Implement a method, which receives an array of strings as argument. The strings are dates in the format "MM**DD**YYYY". For example: "11**03**2024". Add 30 to each of the ...
michael.zech's user avatar
  • 5,040
1 vote
1 answer
222 views

I'm writing a method that performs the following. I believe I have all of my bases covered but I want to make certain. Biggest question is am I referencing the 25th hour correctly? Calculate the 25-...
IbrahimMitko's user avatar
6 votes
3 answers
860 views

I'm working on an application that will make extensive use of dates, there will be various forms of input such as a GUI or text files and the data will be stored in a MySQL database. The planned use ...
pacmaninbw's user avatar
  • 26.2k
6 votes
1 answer
163 views

I have been tinkering about a program that would pick the support "captain" of the day on workdays with the following rules: Program should only pick a captain on weekdays (Mon. to Fri.). ...
Rosemary O'Annah's user avatar
1 vote
1 answer
111 views

I have implemented a working Hebrew Date Picker package (link on pub.dev) in Flutter that supports both single date and date range selection. Here's what the date picker looks like in action: Single ...
MendelG's user avatar
  • 107
2 votes
0 answers
180 views

I came up with an algorithm and created a Rust implementation of it. I've already posted it for code review previously but created another post since I've made many changes to it, including the ones ...
TypicalHog's user avatar
5 votes
2 answers
433 views

Description: Calculate the number of concurrently running jobs for any given minute during a day. Each Job is scheduled to run X ...
David's user avatar
  • 283
4 votes
1 answer
152 views

I am working on a project that involves tracking the operating hours of businesses across different timezones. Some of these businesses operate past midnight, and to accommodate this, operating hours ...
tony's user avatar
  • 433
2 votes
1 answer
92 views

Use case The user is interested in supplying a timestamp of a particular moment in time. This python application will perform two astronomy calculations for a set list of planetary bodies: Calculate ...
Hunter's user avatar
  • 259
2 votes
1 answer
233 views

I've created a simple algorithm, implemented it in Rust, and published it as a crate on crates.io. https://crates.io/crates/randevu My code seems pretty clean and idiomatic to me, but I'd like to know ...
TypicalHog's user avatar
2 votes
2 answers
116 views

As the title lists, I am trying to write an effective unittest suite to ensure that the function that converts a date to UTC from local or vice-versa is doing as planned. But it seems hard because ...
0004's user avatar
  • 121
7 votes
2 answers
331 views

I have two lap time strings I need to subtract, the format is minutes, seconds, milliseconds. This is to compare a new world record time to the previous holder's ...
Soda Party's user avatar
0 votes
1 answer
116 views

This is the program I have written to return the list of keys if the current hour is present within the range provided. ...
Tony Montana's user avatar
5 votes
1 answer
1k views

I wanted to write a utility method for learning purposes to determine if a given date (year, month and day) falls within EU summer time or not, without using any of the Java library methods. Is here ...
Tobias Grothe's user avatar

15 30 50 per page
1
2 3 4 5
70