Module version
This module helps with retrieving version information.
Functions
Version:getCurrentRevision () | Returns current KOReader git-rev. |
Version:getNormalizedVersion (rev) | Returns normalized version of KOReader git-rev input string. |
Version:getNormalizedCurrentVersion () | Returns current version of KOReader. |
Version:getShortVersion () | Returns current version of KOReader, in short form. |
Version:getBuildDate () | Returns the release date of the current version of KOReader, YYYYmmdd, in UTC. |
Functions
- Version:getCurrentRevision ()
-
Returns current KOReader git-rev.
Returns:
-
string
full KOReader git-rev such as
v2015.11-982-g704d4238
- Version:getNormalizedVersion (rev)
-
Returns normalized version of KOReader git-rev input string.
Parameters:
- rev
string
full KOReader git-rev such as
v2015.11-982-g704d4238
Returns:
-
int
version in the form of a 10 digit number such as
2015110982
-
string
short git commit version hash such as
704d4238
- rev
string
full KOReader git-rev such as
- Version:getNormalizedCurrentVersion ()
-
Returns current version of KOReader.
Returns:
-
int
version in the form of a 10 digit number such as
2015110982
-
string
short git commit version hash such as
704d4238
See also:
-
int
version in the form of a 10 digit number such as
- Version:getShortVersion ()
-
Returns current version of KOReader, in short form.
Returns:
-
string
version, without the git details (i.e., at most YYYY.MM.P-R)
- Version:getBuildDate ()
-
Returns the release date of the current version of KOReader, YYYYmmdd, in UTC.
Technically closer to the build date, but close enough where official builds are concerned ;).
Returns:
-
int
date