Skip to main content

Questions tagged [time]

The tag has no usage guidance.

-1 votes
2 answers
106 views

Best Practices for Storing Operational Hours Extending Past Midnight in MySQL

I'm building a PHP application to manage business operating hours, including cases where the closing time extends past midnight. I'm considering various ways to store these hours in MySQL and need ...
tony's user avatar
  • 145
1 vote
4 answers
192 views

Are group time estimates standard?

Our team assigns time estimates to tasks (not stories) in a group setting, so one of us will give an estimate that then anyone who picks up the stories has to meet or else gets questioned about it. ...
Pet's user avatar
  • 27
1 vote
2 answers
289 views

High-cardinality UUID: how/where to store? [closed]

I have lots of devices, each identified by a unique UUID. For each device, I have one or more timeseries data (potentially up to millions of entries). What's the best way to store these entries? ...
persson's user avatar
  • 197
4 votes
6 answers
1k views

How do I determine how long a refactoring effort will take?

After much hard work, I've convinced my manager that some absolutely awful code needs refactoring. As with any project, they've asked me for a time estimate and I've found myself stumped. How can I ...
J. Mini's user avatar
  • 1,017
4 votes
3 answers
596 views

Using Gregorian Year vs using Mean Tropical Year

I was working on a small CLI tool to convert between time units and seconds. Someone filed an issue about how the code was treating a year as 365.25 days while the Gregorian year is supposed to be 365....
An Ant's user avatar
  • 149
25 votes
13 answers
10k views

How much time should you spend planning a commit before writing code?

At the moment I'm spending more time planning out a commit than actually writing code when adding a new feature. Less than two hours would be lucky, and sometimes I'd spend a good part of the day ...
Tom Huntington's user avatar
1 vote
3 answers
126 views

How to model a time-distributed process in functional programming style?

I'm searching for any formal/generic approach to modeling a process distributed in time with functional programming. Here is an example. Let's implement a very simple notification service. It accepts ...
Anthony's user avatar
  • 149
-2 votes
1 answer
271 views

Why does DateInterval lack weeks, quarters/seasons, as well as decimal/float versions of each property?

This has puzzled and frustrated me for years: https://www.php.net/manual/en/class.dateinterval.php y Number of years. m Number of months. d Number of days. h Number of hours. i ...
Nafur's user avatar
  • 21
0 votes
1 answer
69 views

Find concurrent users with timeranges

So my question is more algorithm based rather than code or architectural problem. I have a problem where I am given an array of object like this: [{joinedAt: <Timestamp>, leftAt:<Timestamp>...
Muhammad Faizan's user avatar
2 votes
3 answers
194 views

When does a *fixed delay* make sense?

Every now and then I see someone delaying an action by a certain number of milliseconds to ensure it is working. Something like: doSomethingInHtml(); timer.schedule(100); // delay for 100 milliseconds ...
Adelin's user avatar
  • 281
0 votes
3 answers
330 views

How to control time with API testing?

I'm trying to test an API (see API testing). Some operations depend on time. Here are some examples: A post may only be edited within the first 5 minutes You may not try to login more than 10 times ...
Shoe Diamente's user avatar
4 votes
2 answers
614 views

Can Time be a Primary Actor in the Hexagonal Architecture?

I really like the fundamental principles behind the Hexagonal Architecture (Ports and Adapters) and I have mostly applied it to my system/application. There is one thing that I wasn't able to ...
Guven's user avatar
  • 924
5 votes
3 answers
438 views

Fastest way to generate (machine wide) unique 64 bit timestamps on Windows

Here are some of the characteristics of my problem: I must generate unique 64 bit timestamps across processes on a single machine. I am very much limited to those 64 bits. This seems to rule out ...
ChristopheD's user avatar
1 vote
4 answers
850 views

Why do many programming languages and applications use integer instead of floating point to represent time?

In my experience, the value of time mostly is represented by integer number, by programming languages (C/Java/Golang/Javascript(*)...), and by databases (MySQL, Postgres...), exceptions maybe some GUI/...
Yoshi's user avatar
  • 767
-2 votes
2 answers
227 views

Backtracking with big inputs

I'm doing a Magic Square problem, and I'm using backtracking tecnique for do it. So, the magic square asks you for an input which is the size of the square, and you generate this square, and you need ...
OnlyDavies's user avatar

15 30 50 per page
1
2 3 4 5
7