Skip to content

How to force LocalDateTime Month to be 3 letters long

My goal is to use LocalDateTime and display a month with exactly 3 letters. For the English language, this is easy: The result is as expected: For the German language (as above, only with Locale.GERMAN), the result is unexpected: While the abbreviations are all common in german, “März”, “Jun…

Transforming compass direction output

I have directional outputs which are both flipped and + – as appose to genuine compass outputs. I want to convert these using math to give me the correct output. I am pretty sure this can be done using trigonometric functions, i would welcome any advice i have drawn a quick sketch excuse the rough jotti…