• entries
191
861
• views
117172

# Sigh, part II

93 views

I got a spec today that requires me to:

store a numeric dollar value inside of a datetime type

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

Not only that, but the schedule requires your code to be complete and debugged by $1.85 #### Share this comment ##### Link to comment sounds to me like a legacy rework =) #### Share this comment ##### Link to comment 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