This is nothing to what I have seen here (big investment bank, where else?). Working on one of the trading systems, I came across an exceptions table which holds data of failed trades. It has a column "dayofweek" and looking at the values they go up to 31. Talking to a colleague how this could be he said:"Ah, that one, yes, somebody misnamed it." WTF!
blupp
@blupp
Best posts made by blupp
Latest posts made by blupp
-
RE: English language mastery
-
RE: Keeping it Simple
from the job spec:".... Scrum development methodology ...". when I first heard about this some weeks ago I thought it's a typo and somebody accidentally put a "r" in it. All these buzzwords, what a pile of p00.
-
RE: GetTimeNow
@JvdL said:
I "like" how your solution has the same problem as the original.
hour = Date.Now.Hour 'Yields 5 on 5:59:59.999
minute = Date.Now.Minute 'Yields 0 on 6:00:00.000
And you are right indeed! but it was good enough for an example :-)
-
RE: GetTimeNow
I always "like" the way these guys comparing a volatile variable with a constant value and then conditionally use the volatile variable:
If Date.Now.Minute < 10 Then
'add a 0 in the front
min = "0" & Date.Now.Minute
Else
min = Date.Now.Minute
End Ifshould be
minutes = Date.Now.Minute
If minutes < 10 Then
'add a 0 in the front
min = "0" & minutes
Else
min = minutes
End If
so the Date.Now.Minute does not change between the test for < 10 and the next statement where it is read again. okok, the window of opportunity is really small, but it is there.
but the best solution IMHO is still this:
minutes = Date.Now.Minute
min = right$("0" & minutes,2)