cake-contrib / Cake.AddinDiscoverer

Tool to aid with discovering information about Cake Addins
MIT License
5 stars 6 forks source link

Add release date to the generated YAML #159

Closed Jericho closed 3 years ago

Jericho commented 3 years ago

Date the analyzed package was published to nuget.org

Jericho commented 3 years ago

International friendly and human readable format: YYY-MM-DD

I'm not sure if nuget provides hours and minutes, but if I find out that they do I will also make include it (in 24 hours format).

Jericho commented 3 years ago

I confirm that I will be able to include hours and minutes.

FYI: date+time will be in UTC.

augustoproiete commented 3 years ago

@Jericho Nice. Given it's date & time and UTC, it might make sense to store them in the ISO 8601-1:2019 standard format (e.g. 2020-12-17T08:13:35.4578436Z).

const string dateStringFormatUtc = "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'FFFFFFFZ";

This roundtrips well with DateTime correctly setting UTC as the date time kind.