Add Ruby examples

Added Ruby code examples for time conversion