I've implemented a DSL on my server. So, currently I'm sending transformed Linq expressions and translated to DSL syntax over the network.
Currently, it's came me up a trouble and there are running on my mind several apporaches to solve it.
I need to get the difference between two dates (entity field, or constant) in hours, minutes, seconds, days, months, years...
What would be your approach taking in mind it has to be able to run over objects.