Search found 10 matches

by lorcap
Mon Jan 10, 2022 8:18 pm
Forum: General Discussion and Questions
Topic: datetime string convert to datetime
Replies: 5
Views: 10039

Re: datetime string convert to datetime

You're right, the directory structure may not be obvious to non-developers. My contribution is in this folder.

PS: yes, it's related to MicroPython.
by lorcap
Sun Jan 09, 2022 8:59 pm
Forum: General Discussion and Questions
Topic: datetime string convert to datetime
Replies: 5
Views: 10039

Re: datetime string convert to datetime

If you don't mind experimental code, you can try out my datetime branch. It's stable from my point of view: it's just waiting for a PR merging. You can find the doc too.
by lorcap
Wed Oct 06, 2021 11:27 am
Forum: Development of MicroPython
Topic: Proposal for new module `suntime`
Replies: 5
Views: 10426

Re: Proposal for new module `suntime`

I just pushed commit 732b15df with the new module implementation. I rebased it on `datetime` branch (see my corresponding thread) because it depends on that.

I'd be glad if some (@pythoncoder) could review the documentation as well, because I'm not a native English speaker.
by lorcap
Tue Sep 28, 2021 9:24 pm
Forum: Development of MicroPython
Topic: Proposal for new module `suntime`
Replies: 5
Views: 10426

Re: Proposal for new module `suntime`

The pull request was denied because of the license. I understand that. I started from scratch with the formula provided by Wikipedia's Sunrise equation and it works. I'll provide a new clean and neat code under MIT license in the following days. What I don't understand is why a module as this couldn...
by lorcap
Mon Sep 27, 2021 7:23 pm
Forum: Development of MicroPython
Topic: Proposal for new module `suntime`
Replies: 5
Views: 10426

Proposal for new module `suntime`

I just push two pull request for a new module (#450) and its documentation (7866). `suntime` provides an approximated calculation of sunrise and sunset time. Adapted from SatAgro's suntime.
by lorcap
Mon Sep 27, 2021 9:03 am
Forum: Development of MicroPython
Topic: datetime porting proposal
Replies: 9
Views: 25954

Re: datetime porting proposal

Thanks for your interest, much appreciated. As stated in the documentation I wrote for the module, the two main constraints for `timedelta` type are: Minimum resolution is 1 second, instead of 1 microsecond. Maximum delta spans over ±24855 days (±2^31 seconds or ±68 years) instead of ±999999999 days...
by lorcap
Sun Sep 26, 2021 8:57 pm
Forum: Development of MicroPython
Topic: datetime porting proposal
Replies: 9
Views: 25954

Re: datetime porting proposal

Ok, I just made my pull requests for code (#449) and doc (#7859).
by lorcap
Fri Sep 24, 2021 3:47 pm
Forum: Development of MicroPython
Topic: datetime porting proposal
Replies: 9
Views: 25954

Re: datetime porting proposal

I am the author of the that code and as such I can choose and change the licensing model (I believe).
by lorcap
Thu Sep 23, 2021 9:38 pm
Forum: Development of MicroPython
Topic: datetime porting proposal
Replies: 9
Views: 25954

Re: datetime porting proposal

Thanks Peter for you reply.

I'm almost done with the porting. It was easy and I managed to improve the library. For a glimpse, see my github repo.

Regarding the licensing, I don't mind adopting the MIT License.
by lorcap
Sun Sep 19, 2021 8:31 pm
Forum: Development of MicroPython
Topic: datetime porting proposal
Replies: 9
Views: 25954

datetime porting proposal

Hi everyone, my long-term goal is converting my personal project from Zerynth to MicroPython. First step would be porting the datetime module I wrote last year. It represents a minimalist implementation of Python module datetime . Is anybody working on something similar? What would be a good name, d...