---
title: "CMTimeAbsoluteValue(_:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmtimeabsolutevalue(_:)"
---

# CMTimeAbsoluteValue(_:)

Returns the absolute value of a time.

## Declaration

```swift
func CMTimeAbsoluteValue(_ time: CMTime) -> CMTime
```

## Parameters

- `time`: A time structure.

## Return Value

Return Value The time value, but with its sign inverted, if necessary.

## See Also

### Inspecting a Time

- [CMTimeGetSeconds(_:)](coremedia/cmtimegetseconds(_:).md)
- [CMTIME_IS_VALID(_:)](coremedia/cmtime_is_valid(_:).md)
- [CMTIME_IS_INVALID(_:)](coremedia/cmtime_is_invalid(_:).md)
- [CMTIME_IS_POSITIVEINFINITY(_:)](coremedia/cmtime_is_positiveinfinity(_:).md)
- [CMTIME_IS_NEGATIVEINFINITY(_:)](coremedia/cmtime_is_negativeinfinity(_:).md)
- [CMTIME_IS_INDEFINITE(_:)](coremedia/cmtime_is_indefinite(_:).md)
- [CMTIME_IS_NUMERIC(_:)](coremedia/cmtime_is_numeric(_:).md)
- [CMTIME_HAS_BEEN_ROUNDED(_:)](coremedia/cmtime_has_been_rounded(_:).md)
