 comparison is independent
of whether the time is in UTC or in the local time zone.</p>
<pre class="language-dart"><code>var now = new DateTime.now();
var earlier = now.subtract(const Duration(seconds: 5));
assert(earlier.isBefore(now));
assert(!now.isBefore(now));

// This relation stays the same, even when changing timezones.
assert(earlier.isBefore(now.toUtc()));
assert(earlier.toUtc().isBefore(now));

assert(!now.toUtc().isBefore(now));
assert(!now.isBefore(now.toUtc()));
</code></pre>
    </section>
  