Issue with continous incrementing of unbroken sequence for a entire working day

Chris Angelico rosuav at gmail.com
Thu Feb 28 16:50:41 EST 2013


On Fri, Mar 1, 2013 at 8:44 AM, Morten Engvoldsen <mortenengv at gmail.com> wrote:
> Hi,
> Thanks all for suggestion...
>
> I am using current date as current date local time. I think
> datetime.datetime will provide current local date and time, so
> hopefullt the function take care
> if the local clock is changed...

The worst that can happen is that the date changes and your serial
resets when it shouldn't. Can you cope with that? (Or just blame it on
the user and let them cope?) If so, it's easy.

ChrisA



More information about the Python-list mailing list