Sha256: 02f9c161b96704e3e07a948ea77658809d5ac4af13765f0fa1bfac38565aadc8
Contents?: true
Size: 430 Bytes
Versions: 72
Compression:
Stored size: 430 Bytes
Contents
/** * Here is an example solution for the Gigasecond exercise */ component { function add( input ) { // Convert to local time input = dateConvert( 'utc2Local', input ); // Add 1 billion seconds var newDate = dateAdd( 's', 1000000000, input ); // Convert back to UTC newDate = dateConvert( 'local2Utc', newDate ); return dateFormat( newDate, 'yyyy-mm-dd' ) & 'T' & timeFormat( newDate, 'HH:mm:ss' ); } }
Version data entries
72 entries across 71 versions & 1 rubygems