9956: Load volume config from YAML file
[arvados.git] / sdk / go / arvados / duration.go
index 7b87aee6ab7b14c875aa044e3b88e11ed22bd567..a64eaacf8347eb2d6937c84e2c1b0598994ce937 100644 (file)
@@ -28,6 +28,11 @@ func (d Duration) String() string {
        return time.Duration(d).String()
 }
 
+// Duration returns a time.Duration
+func (d Duration) Duration() time.Duration {
+       return time.Duration(d)
+}
+
 // Value implements flag.Value
 func (d *Duration) Set(s string) error {
        dur, err := time.ParseDuration(s)