Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

MyRoGeertGit
Copy link
Contributor

Windows DATE is a date formatted as double, with origin at 1/1/1900. This modification allows to display doubles interpreted as a Windows DATE, similar to the unix epoch display option.

@justinclift
Copy link
Member

Ahhh, that sounds useful. @MKleusberg does this look good to merge? It's a three-liner. 😄

@MKleusberg
Copy link
Member

Thanks, @MyRoGeertGit for contributing this 😄
I have one small suggestion before merging: can we change the datetime() function to just a date() call? Because as far as I see it's just the date which is stored in the number anyway, so the time part of the string would always be 00:00:00.

@MyRoGeertGit
Copy link
Contributor Author

@MKleusberg
The fractional part of DATE is the hour/min/sec representation.
eg.: 42372.4709375 represents 2016-01-03 11:18:09.
I propose to add both a date and a datetime format.
date ('1899-12-30', Date || " days" )
would indeed be shown as
2016-01-03.

MKleusberg added a commit that referenced this pull request Jan 3, 2016
Windows DATE to Date added as display format for Browser Data added.
@MKleusberg MKleusberg merged commit 91745ee into sqlitebrowser:master Jan 3, 2016
@MKleusberg
Copy link
Member

Oh I see. I missed the 'double' bit in your original post. Sorry! This way datetime() does seem like the correct function to use 😄 date() might not even be needed then...
Thanks a lot for your pull request and for the explanation - I haven't used this date format before but am happy to see that DB4S and the display format feature is used in all sorts of ways 😄

@MKleusberg MKleusberg added the enhancement Feature requests. label Jan 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants