title: laravel carbon Compare two timezone times from timestamp
body: <p>I want to compare timings of different timezones. Timestamp is stored in database using Mutators.My code is like below, </p>
  
  <pre><code>public function setScheduledOnAttribute($value)
  {
      $this-&gt;attributes['scheduled_on'] = Carbon::parse($value)-&gt;timestamp;
  }
  
  public function getScheduledOnAttribute($value)
  {
      return $value * 1000;
  }
  </code></pre>
  
  <p>How can I compare  current time with current time in <code>Africa/Casablanca</code> timezone.</p>
  
  <p>Right now I am doing is </p>
  
  <pre><code> $time = Carbon::now();
   $scheduleTime = Carbon::createFromTimestamp($scheduleTime['scheduled_on']/1000, 'Africa/Casablanca')-&gt;toDateTimeString();
  </code></pre>
  
  <p>Am I right? It is not satisfying condition </p>
  
  <pre><code>if ($time &gt;= $scheduleTime) {
  // some task
  }
  </code></pre>
  
  <p>please suggest me..any help would be appreciated.</p>