GithubHelp home page GithubHelp logo

date field about guiabolso2csv HOT 7 CLOSED

hsadok avatar hsadok commented on August 19, 2024
date field

from guiabolso2csv.

Comments (7)

hsadok avatar hsadok commented on August 19, 2024 1

31/12/1969 21:00:00 is precisely the Epoch in UTC-3 time zone. How did you calculate that?

I'll see if I can convert epoch time to Excel time. Right now I'm really short on time so I'll likely make any change to the code only next month. But you can count on it 😀

from guiabolso2csv.

diogobarreto avatar diogobarreto commented on August 19, 2024

All in all the program works well and I'm very pleased, however, the date field does not download correctly. For instance, the day 30/06/2017 is downloaded as "1498791600000".
I've noticed that each date changes by an increment of 86400000, which is the number of seconds in a day multiplied by 1000. For my data, I managed to identify the date of one transaction and then manage to convert the date for all the other records. I hope this helps and thanks again for this routine.

from guiabolso2csv.

hsadok avatar hsadok commented on August 19, 2024

Hi Diogo,

I'm glad this is being useful to you. There are a few things missing here and there and I appreciate anytime someone point out.

The time is given in milliseconds since the Epoch, which is a classic time representation on UNIX systems. You can even use python to "decode" it:
python -c 'import time; print time.ctime(1498791600000/1000)'

from guiabolso2csv.

diogobarreto avatar diogobarreto commented on August 19, 2024

Thanks for the quick reply so late at night, this program has been superb, everything I could wish for!
Hugo, I have calculated that the "1498791600000" number (which refers to 30/06/2017) implies that the system date be: 31/12/1969 21:00:00, does this make sense?
For a future update (in case it's simple to implement), would it be possible to export this date as 42916, which is the number equivalent of 30/06/2017 in Excel?
Thanks in advance!

from guiabolso2csv.

diogobarreto avatar diogobarreto commented on August 19, 2024

I just reversed the calculation in milliseconds from a known date in my expenses. :) Perhaps you could apply a simple query to the date column based upon a know date in Excel's time format and Epoch's, such as: =42916-(1498791600000-X)/86400000, where X would be the record's date in Epoch.format.
And no worries, the program is already extremely useful and I can always sort these things out through post-processing. Thanks again and keep up the good work!

from guiabolso2csv.

hsadok avatar hsadok commented on August 19, 2024

I believe this issue is solved when using the new --excel flag. (bda95f5)

Using this flag, the output is generated directly in a xlsx format and the date field works as expected.

Check the updated README for further instructions.

from guiabolso2csv.

diogobarreto avatar diogobarreto commented on August 19, 2024

Yes, Hugo, you are right, this same issue had been solved with the excel export (I did not remember), but as I had an issue with the additional "--" commands and exported as a csv, the issue resurfaced. Thanks again.

from guiabolso2csv.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.