How to use the locutus/php/datetime/time function in locutus

To help you get started, we’ve selected a few locutus examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LoveLiveSunshine / pixiv.moe / src / containers / MainContainer.js View on Github external
onFavouriteClick(illustId, event) {
    const authData = Storage.get('auth');
    if (authData === null || authData.expires_at < time()) {
      return this.loginRef.open();
    }
    const target = event.nativeEvent.target,
      body = document.body;
    if (target.classList.contains('fn-wait')) {
      return;
    }
    target.classList.add('fn-wait');
    body.classList.add('fn-wait');
    cachedFetch(config.favouriteURL, {
      mode: 'cors',
      method: 'put',
      timeout: 10e3,
      headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/json',