IntlCalendar::getNow

(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)

IntlCalendar::getNowGet number representing the current time

Beschreibung

Objektorientierter Stil

public static IntlCalendar::getNow(): float

Prozeduraler Stil

intlcal_get_now(): float

The number of milliseconds that have passed since the reference date. This number is derived from the system time.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

A float representing a number of milliseconds since the epoch, not counting leap seconds.

Beispiele

Beispiel #1 IntlCalendar::getNow()

<?php
$formatter 
IntlDateFormatter::create('es_ES',
        
IntlDateFormatter::FULL,
        
IntlDateFormatter::FULL,
        
'Europe/Madrid');

$val IntlCalendar::getNow();

var_dump($val);
echo 
$formatter->format(IntlCalendar::getNow() / 1000.), "\n";

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

float(1371425814666)
lunes, 17 de junio de 2013 01:36:54 Hora de verano de Europa central

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

FULLLZ.ASIA ⭐️ Sells CLONED CARDS ATM verify Code ATM DUMPS

CLONE CARDS ATM REAL SUPPLYING STORE DUMPS WITH PIN DUMPS TRACK 1/2 - BEST DUMPS SHOP PAYPAL CASHAPP PAYONEE BALANCE HIGH Sell Dumps track 1&2 ( F ...

Geschrieben von dumpstop10 am 19.05.2026 06:28:52
Forum: Archiv / Trash
Survive Every Night Inside Granny Horror Escape Challenge

Introduction to Granny Granny (https://grannyfree.io/) is one of the most popular horror games on mobile and PC platforms. The game delivers a t ...

Geschrieben von CathyikuEdwin am 19.05.2026 05:35:00
Forum: PHP Developer Forum
U4GM Guide Helldivers 2 Solo Expendable MG Build

There's a different kind of thrill in watching someone walk into a Terminid city alone and not panic. No squad chatter, no rescue ping, no mate th ...

Geschrieben von Rodrigo am 18.05.2026 09:50:04
Forum: User stellen sich vor
U4GM Guide PoE 2 Reverie Hollow Mask Reworks

Path of Exile 2 has reached that funny stage where people aren't only talking about bosses, dodge rolls, or how much heavier the hits feel. The ge ...

Geschrieben von Rodrigo am 18.05.2026 09:49:18
Forum: User stellen sich vor