---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/logs](../index.md) / parseSinceTime

# Function: parseSinceTime()

> **parseSinceTime**(`sinceStr`, `now`): `Date`

Defined in: [packages/b2c-tooling-sdk/src/operations/logs/filter.ts:49](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/operations/logs/filter.ts#L49)

Parses a `since` value into a Date object.
Supports:
- Relative times: "5m", "1h", "2d"
- ISO 8601: "2026-01-25T10:00:00"

## Parameters

### sinceStr

`string`

The value to parse

### now

`Date` = `...`

Reference time for relative values (defaults to the current time).
  Injectable so callers that resolve several bounds together, or that need
  deterministic behavior in tests, can pin a single "now".

## Returns

`Date`
