+
Block Time
+
TransactionTime == null || strlen(trim($tx->TransactionTime)) == 0) ? 'Not yet confirmed' :
+ \DateTime::createFromFormat('U', $tx->TransactionTime)->format('j M Y H:i:s') . ' UTC' ?>
+
+ TransactionTime > $tx->Created->getTimestamp()):
+ $diffSeconds = $tx->TransactionTime - $tx->Created->Timestamp();
+ if ($diffSeconds <= 60) {
+ echo sprintf(' (+%s second%s)', $diffSeconds, $diffSeconds == 1 ? '' : 's');
+ } else {
+ $diffMinutes = ceil($diffSeconds / 60);
+ echo sprintf(' (+%s minute%s)', $diffMinutes, $diffMinutes == 1 ? '' : 's');
+ }
+ ?>
+
+
+