Twas is defined as an older English style of writing to mean it was.
(contraction)An example of twas is the first word of the Night Before Christmas poem by Clement Clarke Moore.
See 'twas in Webster's New World College Dictionary
See 'twas in American Heritage Dictionary 4