# chopSeconds

Industry: Core

## Signature

```ts
chopSeconds(value: string): string
```

Return an ISO string with second precision removed from a PlainDateTime or PlainTime value.

- Truncates to minute precision.
- Accepts both PlainDateTime and PlainTime formats.
- Returns "" for invalid input.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `string` | ISO PlainDateTime or PlainTime string |

## Returns

ISO string trimmed to minutes or "" on invalid input

## Examples

```ts
import { chopSeconds } from "@northguild/gmt/plain/chop";

chopSeconds("2024-02-29T12:34:56") // "2024-02-29T12:34"
```

## Source

[plain/chop/chopSeconds.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/plain/chop/chopSeconds.ts)
