Why Twitter’s character count is not string length
Twitter processes every URL through its t.co service, replacing it with a fixed-length short link. As a result, pasting “https://www.google.com/search?q=hello+world” (47 chars) into a tweet consumes the same 23 characters as pasting “https://a.co” (12 chars). The raw string length of your text is therefore meaningless for counting purposes — you must substitute each URL with a 23-character placeholder first.
The 12 AM midnight vs 12 PM noon problem (for time content)
Separately, if your tweet contains time references, the time-format-converter can help you get them right.
Privacy
All counting happens in your browser. Your tweet text is never sent to any server.