Module: Gdsii::Access::GdsiiTime

Included in:
Library, Structure
Defined in:
lib/gdsii/mixins.rb

Overview

Shared method related to working with the standard Time library within the Gdsii library.

Instance Method Summary collapse

Instance Method Details

#build_time(time) ⇒ Object

Given a Time object, the time is formatted into an array of integers according to the GDSII specification.



267
268
269
# File 'lib/gdsii/mixins.rb', line 267

def build_time(time)
  [time.year-1900, time.month, time.day, time.hour, time.min, time.sec.to_i]
end