rethinkdb-net icon indicating copy to clipboard operation
rethinkdb-net copied to clipboard

ReQL date/time operations

Open mfenniak opened this issue 12 years ago • 1 comments

These all look pretty straightforward; most of the "hard" work was adjusting the DateTime and DateTimeOffset datum converters to use the new ReQL pseudotype format.

~~now~~ time epoch_time iso8601 in_timezone timezone during date time_of_day ~~year~~ ~~month~~ ~~day~~ ~~day_of_week~~ ~~day_of_year~~ ~~hours~~ ~~minutes~~ ~~seconds~~ to_iso8601 to_epoch_time

mfenniak avatar Aug 18 '13 13:08 mfenniak

What is the timeline of implementing the date operation? (I'm using the Json.NET serializer)

If it won't be implemented soon, could you please raise a NotImplementedException for it (and the rest of these)? Currently, I get this very unclear / completely unhelpful error message when I try using date:

//conn.Run(Tables.sleeps.Filter(fun sleep -> sleep.date.Date = midnightDate).Nth(0))

System.InvalidOperationException
variable 'sleep' of type 'sleep_log.DomainTypes+Sleep' referenced from scope '', but it is not defined

spiffytech avatar Feb 17 '15 18:02 spiffytech