I am trying to make sense of the age of the battery (by calculating it from its manufacturing date). I need the information for something I am working on and need to know how to access it programmatically.
Normally, it was easy to do this as described here. But since Big Sur, this five-digit integer has changed to something totally unrecognizable. I found this single link detailing it, and that person had issues explaining what it actually meant and how to extract the manufacturing date from it.
I was not able to find the spec sheet to figure out what Apple means with this number too, so if anyone has any information, it would be uber useful. Thank you. :)
If it matters, I am currently extracting this information using
ioreg -l -n AppleSmartBattery -r | grep -e \"ManufactureDate\" \
| awk -F',' '{printf ("%s", $56)}' | awk -F'=' '{printf ("%i", $2)}'