Sign in to follow this  
  • entries
    191
  • comments
    861
  • views
    116838

Sigh, part II

Sign in to follow this  
Mithrandir

81 views

I got a spec today that requires me to:

store a numeric dollar value inside of a datetime type



Yes. You read that right.


I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a spec.
Sign in to follow this  


5 Comments


Recommended Comments

the table it goes into has 528 columns.

All of the numeric columns have been taken up already, and we didn't want to add yet another column. So this is their solution.

*grumble*

Share this comment


Link to comment
Hehe, simple enough to do though. Assuming you're using a decimal type, you would just take the address (mmm, unsafe code), dereference it into a long, and stick it into a DateTime (ignoring the fact that decimal types are 128bit) [grin]

Share this comment


Link to comment
Quote:

Not only that, but the schedule requires your code to be complete and debugged by $1.85

That was a real LOL... I had to share with the co-workers. =D

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now