Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting the time format #259

Open
ghost opened this issue Aug 20, 2016 · 3 comments
Open

Converting the time format #259

ghost opened this issue Aug 20, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 20, 2016

How would one convert the date/time format used here into a more readable value, like dd/mm/yyy hh:mm:ss?

@Aiyubi
Copy link

Aiyubi commented Aug 21, 2016

I feel the need to post this: https://xkcd.com/1179/

But just look where it is used and edit those parts yourself? It is just in the reports where it tells you the start and endlich time?

@ghost
Copy link
Author

ghost commented Aug 21, 2016

I'm going to have a look at the code today. I'm not very handy with python, so what I'd like to do is have it dump the time in a more easy to read format into the db so I can do queries and whatnot from there. I'll prob have to pull all my sightings, convert what I have and re-import them into a new table using the datetime data type or something, but we'll see.

For instance, I'd like to be able to query for a specific pkmon, order by spawn point and time sighted so I could have a better idea of when to go where.

@modrzew
Copy link
Owner

modrzew commented Aug 21, 2016

@Corinos you don't need to touch pokeminer's code to do what you want. You can convert timestamp into readable date using just SQL - for example, using MySQL's FROM_UNIXTIME function. See more in MySQL docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants