I ended up converting to Decimal and then working from there. On Tue, Nov 10, 2015 at 1:18 AM, Manuele Pesenti <[email protected]> wrote:
> Il 05/11/15 06:53, Mark Graves ha scritto: > > Hey everyone, > > > > I find myself in the need for microsecond level precision for time > > fields where I am querying over those fields regularly. > > > > As I dug into pydal and web2py's internals, I noticed that it seems to > > be convention that times are truncated to H:M:S > > > > I'm aware I can easily store as a string and coerce or define a custom > > field type or store as a datetime for the required precision. > > > > I'm finding that rather cumbersome. > > > > Am I missing something or would this be the best way to approach this? > > > > -Mark > I was interested to read some answers to this question too... I would > try to save the micro-seconds part of your datetime in a different column > Let me know if this approach can fit to your needs. > > Best regards > > Manuele > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/Iaklk67GzIw/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

