Not sure when it was written by Hamish Henderson probably around or after WWII but the advice to check Dick Gaughan's site is sound. the tune is much older than the song of course it's a pipe tune; 'The Bloody Fields of Flanders' Someone over at Footstompin will definitly know the answer.