Skip to content

Commit 257451d

Browse files
committed
Replace Greenwich Mean Time with UTC in specification
1 parent e6a7d2c commit 257451d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To generate a version number `GmodNET.VersionTool` takes a version JSON file of
1515
```
1616
within git repository, where `"Version"` key MUST correspond to a [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html) compatible version number value and `"Codename"` key MAY correspond to a string value which, if specified, MUST be a single word of ASCII alphanumerics and hyphens [0-9A-Za-z-].
1717

18-
The resulting version number has the form `[FullVersion]+codename.[codename from version JSON file].[tag or branch or pull].[tag or branch or pull request name].commit.[first 7 symbols of hexadecimal representation of git commit hash].[any additional metadata provided in a "Version" key-value pair of the version JSON file]` where `[FullVersion]` is computed as follows: if the `[version]` value of the `"Version"` key of the version JSON file DOES NOT contain pre-release identifier as described in the [item 9 of the Semantic Versioning 2.0.0 specification](https://semver.org/spec/v2.0.0.html#spec-item-9) then `[FullVersion]` is equal to `[version]`, if the `[version]` value of the `"Version"` key of the version JSON file DOES contain pre-release identifier then `[FullVersion]` equals `[version].[year].[month (numerically)].[day].[hour].[second]` where date and time are date and time of the git commit in Greenwich Mean Time (GMT). `codename.[codename from version JSON file]` can be dropped if there is no codename specified in the version JSON file.
18+
The resulting version number has the form `[FullVersion]+codename.[codename from version JSON file].[tag or branch or pull].[tag or branch or pull request name].commit.[first 7 symbols of hexadecimal representation of git commit hash].[any additional metadata provided in a "Version" key-value pair of the version JSON file]` where `[FullVersion]` is computed as follows: if the `[version]` value of the `"Version"` key of the version JSON file DOES NOT contain pre-release identifier as described in the [item 9 of the Semantic Versioning 2.0.0 specification](https://semver.org/spec/v2.0.0.html#spec-item-9) then `[FullVersion]` is equal to `[version]`, if the `[version]` value of the `"Version"` key of the version JSON file DOES contain pre-release identifier then `[FullVersion]` equals `[version].[year].[month (numerically)].[day].[hour].[second]` where date and time are date and time of the git commit in UTC. `codename.[codename from version JSON file]` can be dropped if there is no codename specified in the version JSON file.
1919

2020
## Examples of resulting version numbers
2121

0 commit comments

Comments
 (0)