Convert/parse a VersionNumber into a struct or similar

Is there a function for that purpose? Sure it is not difficult to write for v"1.6.0", and not that difficult for "v"1.7.0-dev.100", but probably already done (many times).

julia> parse(VersionNumber, "1.6.0")

julia> VersionNumber("1.6.0")
1 Like

Well, conversion of a String into a Version number literal / VersionNumber object is not exactly what I asked for. But now, after reading the manual once more, after the phrase " Version number literals create VersionNumber objects" I have tried

julia> fieldnames(VersionNumber)
(:major, :minor, :patch, :prerelease, :build)

So all I need is actually already here.