createTimeSpan static method

IPropertyValue createTimeSpan(
  1. Duration value
)

Implementation

static IPropertyValue createTimeSpan(Duration value) {
  final activationFactoryPtr =
      CreateActivationFactory(_className, IID_IPropertyValueStatics);
  final object = IPropertyValueStatics.fromRawPointer(activationFactoryPtr);

  try {
    return object.createTimeSpan(value);
  } finally {
    object.release();
  }
}