<div class="doc-version" data-version="unstable"> <p>Represents limited information about the current time relative to the parent object.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-unstable"> Fields </a> </li> <li> <a href="#types-that-return-localtime-unstable"> Types that return LocalTime </a> </li> </ul> </div> <h2 id="fields-unstable"> Fields </h2> <ul class="fields"> <li> <div class="field" id="date-unstable"> <div class="field-name"> date (<a href="/api/functions/reference/order-discounts/graphql/scalar#date-unstable"><code>Date!</code></a>) </div> <div> <p>The current date relative to the parent object.</p> </div> </div> </li> <li> <div class="field" id="datetimeafter-unstable"> <div class="field-name"> dateTimeAfter (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-unstable"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is at or past the given date and time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>dateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-unstable"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The date and time to compare against, assumed to be in the timezone of the parent object.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="datetimebefore-unstable"> <div class="field-name"> dateTimeBefore (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-unstable"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is before the given date and time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>dateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-unstable"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The date and time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="datetimebetween-unstable"> <div class="field-name"> dateTimeBetween (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-unstable"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is between the two given date and times, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>endDateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-unstable"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The upper bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>startDateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-unstable"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The lower bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timeafter-unstable"> <div class="field-name"> timeAfter (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-unstable"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is at or past the given time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>time</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-unstable"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timebefore-unstable"> <div class="field-name"> timeBefore (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-unstable"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is at or past the given time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>time</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-unstable"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timebetween-unstable"> <div class="field-name"> timeBetween (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-unstable"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is between the two given times, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>endTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-unstable"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The upper bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>startTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-unstable"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The lower bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> </ul> <h2 id="types-that-return-localtime-unstable"> Types that return LocalTime </h2> <ul> <li> <a href="/api/functions/reference/order-discounts/graphql/common-objects/shop#localtime-unstable"> <code>Shop.localTime</code> </a> </li> </ul> </div><div class="doc-version doc-version--rc" data-version="2025-04"> <p>Represents limited information about the current time relative to the parent object.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-2025-04"> Fields </a> </li> <li> <a href="#types-that-return-localtime-2025-04"> Types that return LocalTime </a> </li> </ul> </div> <h2 id="fields-2025-04"> Fields </h2> <ul class="fields"> <li> <div class="field" id="date-2025-04"> <div class="field-name"> date (<a href="/api/functions/reference/order-discounts/graphql/scalar#date-2025-04"><code>Date!</code></a>) </div> <div> <p>The current date relative to the parent object.</p> </div> </div> </li> <li> <div class="field" id="datetimeafter-2025-04"> <div class="field-name"> dateTimeAfter (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2025-04"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is at or past the given date and time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>dateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2025-04"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The date and time to compare against, assumed to be in the timezone of the parent object.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="datetimebefore-2025-04"> <div class="field-name"> dateTimeBefore (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2025-04"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is before the given date and time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>dateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2025-04"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The date and time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="datetimebetween-2025-04"> <div class="field-name"> dateTimeBetween (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2025-04"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is between the two given date and times, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>endDateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2025-04"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The upper bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>startDateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2025-04"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The lower bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timeafter-2025-04"> <div class="field-name"> timeAfter (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2025-04"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is at or past the given time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>time</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2025-04"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timebefore-2025-04"> <div class="field-name"> timeBefore (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2025-04"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is at or past the given time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>time</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2025-04"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timebetween-2025-04"> <div class="field-name"> timeBetween (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2025-04"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is between the two given times, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>endTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2025-04"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The upper bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>startTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2025-04"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The lower bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> </ul> <h2 id="types-that-return-localtime-2025-04"> Types that return LocalTime </h2> <ul> <li> <a href="/api/functions/reference/order-discounts/graphql/common-objects/shop#localtime-2025-04"> <code>Shop.localTime</code> </a> </li> </ul> </div><div class="doc-version doc-version--latest selected" data-version="2025-01"> <p>Represents limited information about the current time relative to the parent object.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-2025-01"> Fields </a> </li> <li> <a href="#types-that-return-localtime-2025-01"> Types that return LocalTime </a> </li> </ul> </div> <h2 id="fields-2025-01"> Fields </h2> <ul class="fields"> <li> <div class="field" id="date-2025-01"> <div class="field-name"> date (<a href="/api/functions/reference/order-discounts/graphql/scalar#date-2025-01"><code>Date!</code></a>) </div> <div> <p>The current date relative to the parent object.</p> </div> </div> </li> <li> <div class="field" id="datetimeafter-2025-01"> <div class="field-name"> dateTimeAfter (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2025-01"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is at or past the given date and time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>dateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2025-01"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The date and time to compare against, assumed to be in the timezone of the parent object.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="datetimebefore-2025-01"> <div class="field-name"> dateTimeBefore (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2025-01"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is before the given date and time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>dateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2025-01"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The date and time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="datetimebetween-2025-01"> <div class="field-name"> dateTimeBetween (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2025-01"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is between the two given date and times, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>endDateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2025-01"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The upper bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>startDateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2025-01"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The lower bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timeafter-2025-01"> <div class="field-name"> timeAfter (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2025-01"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is at or past the given time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>time</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2025-01"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timebefore-2025-01"> <div class="field-name"> timeBefore (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2025-01"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is at or past the given time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>time</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2025-01"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timebetween-2025-01"> <div class="field-name"> timeBetween (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2025-01"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is between the two given times, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>endTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2025-01"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The upper bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>startTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2025-01"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The lower bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> </ul> <h2 id="types-that-return-localtime-2025-01"> Types that return LocalTime </h2> <ul> <li> <a href="/api/functions/reference/order-discounts/graphql/common-objects/shop#localtime-2025-01"> <code>Shop.localTime</code> </a> </li> </ul> </div><div class="doc-version" data-version="2024-10"> <p>Represents limited information about the current time relative to the parent object.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-2024-10"> Fields </a> </li> <li> <a href="#types-that-return-localtime-2024-10"> Types that return LocalTime </a> </li> </ul> </div> <h2 id="fields-2024-10"> Fields </h2> <ul class="fields"> <li> <div class="field" id="date-2024-10"> <div class="field-name"> date (<a href="/api/functions/reference/order-discounts/graphql/scalar#date-2024-10"><code>Date!</code></a>) </div> <div> <p>The current date relative to the parent object.</p> </div> </div> </li> <li> <div class="field" id="datetimeafter-2024-10"> <div class="field-name"> dateTimeAfter (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-10"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is at or past the given date and time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>dateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2024-10"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The date and time to compare against, assumed to be in the timezone of the parent object.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="datetimebefore-2024-10"> <div class="field-name"> dateTimeBefore (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-10"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is before the given date and time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>dateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2024-10"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The date and time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="datetimebetween-2024-10"> <div class="field-name"> dateTimeBetween (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-10"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is between the two given date and times, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>endDateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2024-10"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The upper bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>startDateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2024-10"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The lower bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timeafter-2024-10"> <div class="field-name"> timeAfter (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-10"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is at or past the given time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>time</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2024-10"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timebefore-2024-10"> <div class="field-name"> timeBefore (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-10"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is at or past the given time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>time</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2024-10"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timebetween-2024-10"> <div class="field-name"> timeBetween (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-10"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is between the two given times, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>endTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2024-10"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The upper bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>startTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2024-10"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The lower bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> </ul> <h2 id="types-that-return-localtime-2024-10"> Types that return LocalTime </h2> <ul> <li> <a href="/api/functions/reference/order-discounts/graphql/common-objects/shop#localtime-2024-10"> <code>Shop.localTime</code> </a> </li> </ul> </div><div class="doc-version" data-version="2024-07"> <p>Represents limited information about the current time relative to the parent object.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-2024-07"> Fields </a> </li> <li> <a href="#types-that-return-localtime-2024-07"> Types that return LocalTime </a> </li> </ul> </div> <h2 id="fields-2024-07"> Fields </h2> <ul class="fields"> <li> <div class="field" id="date-2024-07"> <div class="field-name"> date (<a href="/api/functions/reference/order-discounts/graphql/scalar#date-2024-07"><code>Date!</code></a>) </div> <div> <p>The current date relative to the parent object.</p> </div> </div> </li> <li> <div class="field" id="datetimeafter-2024-07"> <div class="field-name"> dateTimeAfter (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-07"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is at or past the given date and time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>dateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2024-07"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The date and time to compare against, assumed to be in the timezone of the parent object.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="datetimebefore-2024-07"> <div class="field-name"> dateTimeBefore (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-07"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is before the given date and time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>dateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2024-07"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The date and time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="datetimebetween-2024-07"> <div class="field-name"> dateTimeBetween (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-07"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is between the two given date and times, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>endDateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2024-07"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The upper bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>startDateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2024-07"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The lower bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timeafter-2024-07"> <div class="field-name"> timeAfter (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-07"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is at or past the given time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>time</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2024-07"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timebefore-2024-07"> <div class="field-name"> timeBefore (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-07"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is at or past the given time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>time</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2024-07"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timebetween-2024-07"> <div class="field-name"> timeBetween (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-07"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is between the two given times, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>endTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2024-07"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The upper bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>startTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2024-07"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The lower bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> </ul> <h2 id="types-that-return-localtime-2024-07"> Types that return LocalTime </h2> <ul> <li> <a href="/api/functions/reference/order-discounts/graphql/common-objects/shop#localtime-2024-07"> <code>Shop.localTime</code> </a> </li> </ul> </div><div class="doc-version" data-version="2024-04"> <p>Represents limited information about the current time relative to the parent object.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-2024-04"> Fields </a> </li> <li> <a href="#types-that-return-localtime-2024-04"> Types that return LocalTime </a> </li> </ul> </div> <h2 id="fields-2024-04"> Fields </h2> <ul class="fields"> <li> <div class="field" id="date-2024-04"> <div class="field-name"> date (<a href="/api/functions/reference/order-discounts/graphql/scalar#date-2024-04"><code>Date!</code></a>) </div> <div> <p>The current date relative to the parent object.</p> </div> </div> </li> <li> <div class="field" id="datetimeafter-2024-04"> <div class="field-name"> dateTimeAfter (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-04"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is at or past the given date and time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>dateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2024-04"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The date and time to compare against, assumed to be in the timezone of the parent object.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="datetimebefore-2024-04"> <div class="field-name"> dateTimeBefore (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-04"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is before the given date and time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>dateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2024-04"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The date and time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="datetimebetween-2024-04"> <div class="field-name"> dateTimeBetween (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-04"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current date and time is between the two given date and times, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>endDateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2024-04"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The upper bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>startDateTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#datetimewithouttimezone-2024-04"> <code>DateTimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The lower bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timeafter-2024-04"> <div class="field-name"> timeAfter (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-04"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is at or past the given time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>time</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2024-04"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timebefore-2024-04"> <div class="field-name"> timeBefore (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-04"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is at or past the given time, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>time</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2024-04"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="timebetween-2024-04"> <div class="field-name"> timeBetween (<a href="/api/functions/reference/order-discounts/graphql/scalar#boolean-2024-04"><code>Boolean!</code></a>) </div> <div> <p>Returns true if the current time is between the two given times, and false otherwise.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>endTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2024-04"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The upper bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>startTime</code> (<a href="/api/functions/reference/order-discounts/graphql/scalar#timewithouttimezone-2024-04"> <code>TimeWithoutTimezone!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The lower bound time to compare against, assumed to be in the timezone of the parent timezone.</p> </td> </tr> </table> </div> </li> </ul> <h2 id="types-that-return-localtime-2024-04"> Types that return LocalTime </h2> <ul> <li> <a href="/api/functions/reference/order-discounts/graphql/common-objects/shop#localtime-2024-04"> <code>Shop.localTime</code> </a> </li> </ul> </div>