Asia/Colombo

L’heure et la date locales actuelles dans le fuseau horaire Asia/Colombo.

UTC+05:30

Loading...
Loading...

Profil du fuseau horaire

Décalage+05:30
Fuseau horaire IANAAsia/Colombo
Heure d’étéNon disponible

Le pays principal qui utilise le fuseau horaire Asia/Colombo est 🇱🇰 Sri Lanka.

Heure standard Disponible

+0530

UTC

Heure d’été
L’heure d’été n’est pas appliquée

Standards de format de date et d’heure

Le tableau fournit une comparaison côte à côte de différents standards de format de date et d’heure. Chaque ligne représente un standard de format unique tel que ATOM, COOKIE, ISO et RFC, entre autres.
Format
Date et heure
ATOM2026-08-08T05:19:59.806+05:30
COOKIESat, 08 Aug 2026 05:19:59 +0530
HTTPFri, 07 Aug 2026 23:49:59 GMT
ISO2026-08-08T05:19:59.806+05:30
ISO 86012026-08-08T05:19:59.806+05:30
MM-dd-yyyy HH:mm:ss08-08-2026 05:19:59
MongoDB2026-08-07T23:49:59.806Z
MySQL DATETIME2026-08-08 05:19:59
RFC 1036Sat, 08 Aug 26 05:19:59 +0530
RFC 1123Sat, 08 Aug 2026 05:19:59 +0530
RFC 2822Sat, 08 Aug 2026 05:19:59 +0530
RFC 33392026-08-08T05:19:59+0530
RFC 7231Sat, 08 Aug 2026 05:19:59 GMT+5:30
RFC 822Sat, 08 Aug 26 05:19:59 +0530
RFC 850Saturday, 08-Aug-26 05:19:59 GMT+5:30
RSSSat, 08 Aug 2026 05:19:59 +0530
SQL2026-08-08 05:19:59.806 +05:30
SQL Time05:19:59.806 +05:30
UTC2026-08-07T23:49:59.806Z
Unix Epoch1786146599
W3C2026-08-08T05:19:59+05:30
dd-MM-yyyy HH:mm:ss08-08-2026 05:19:59
yyyy-dd-MM HH:mm:ss2026-08-08 05:19:59
yyyy-dd-MM hh:mm:ss a2026-08-08 05:19:59 AM

Fuseaux horaires associés

Un tableau avec une liste de fuseaux horaires qui ont le même décalage. Inclut le nom et les abréviations de fuseau horaire.

Il y a 3 fuseaux horaires dans le tableau.
Fuseau horaire IANA
Nom du décalage
Abbr
Asia/Calcuttaheure de l’IndeUTC+5:30
Asia/Colomboheure de l’IndeUTC+5:30
Asia/Kolkataheure de l’IndeUTC+5:30

Pour les développeurs

php


<?php

// Solution 1
// Set the default time zone
date_default_timezone_set('Asia/Colombo');

// Solution 2
// Use this to get the current date and time in the specified time zone.
$timezone = new DateTimeZone('Asia/Colombo');
// Create a new DateTime object
$date = new DateTime('now', $timezone);
// Print the current date and time
echo $date->format('Y-m-d H:i:s'); // 2023-01-01 00:00:00

python


# Solution 1
# Set the default time zone
from datetime import datetime
# Import the pytz module
import pytz
  
# Create a timezone object
tz = pytz.timezone("Asia/Colombo")
# Get the current time
time_now = datetime.now(tz)
# Format the current time
current_time = time_now.strftime("%H:%M:%S")
  
# Print the current time
print("The current time:", current_time) # The current time: 00:00:00

javascript


/* 
* Solution 1
* Set the default time zone
*/
const date = new Date();
/* 
* Use the toLocaleString() method to get the current date and time in the specified time zone.
*/
const currentTime = date.toLocaleString("en-us", {timeZone: "Asia/Colombo"});
/* 
* Print the current date and time
*/
console.log(currentTime); // 1/1/2023, 12:00:00 AM