inSCADA
Search…
TR
Giriş
Başlarken
Kullanıcı Arayüzü
Mimik Tasarım
Haberleşme Protokolleri
Programlama
APIs
Variable Functions
Connection Functions
Project Functions
Alarm Functions
Script Functions
In-Memory DB Functions
System Functions
User Functions
Date-Time Functions
String Functions
Notification Functions
Confirmation Functions
Database Functions
Other Functions
Veritabanı
Faydalı Özellikler
Güncelleme Günlüğü
Mimari ve Uygulamalar
Geliştirme Yol Haritası
inSCADA' ya Geçiş
Lisanslandırma Politikaları
SSS
Örnek Ekranlar
Yardımcı Araçlar
Kurulumlar
Gereksinimler
Linux' a Kurulum
Windows Kurulum
Powered By
GitBook
Date-Time Functions
Tarih-Saat fonksiyonları, inSCADA Platformunun kurulu olduğu sistemin tarih-saat okuma ve yazma işlemleri için kullanılır.
Get System Date-Time
Date ins.now()
Sistem saatini verir.
Return Value : Java Date Object geri değeri döndürür.
Syntax
1
var
year
=
1900
+
ins
.
now
().
getYear
();
2
var
month
=
ins
.
now
().
getMonth
()
+
1
;
3
var
day
=
ins
.
now
().
getDate
();
4
var
hour
=
ins
.
getHours
();
5
var
minute
=
ins
.
getMinutes
();
6
var
second
=
ins
.
getSeconds
();
7
8
return
"Date Time : "
+
day
+
"/"
+
month
+
"/"
+
year
+
" "
+
hour
+
":"
+
minute
+
":"
+
second
;
9
Copied!
Set System Date-Time
ins.setSystemDateTime(Long ms)
Sistem saatini değiştirir.
ms : 1 Ocak 1970 gece yarısından bu yana geçen milisaniye sayısı.
Return Value : Herhangi bir değer geri döndürmez.
Syntax
1
var
dt
=
new
Date
();
2
dt
.
setHours
(
5
);
3
ins
.
setDateTime
(
dt
.
getTime
());
Copied!
Previous
User Functions
Next
String Functions
Last modified
2yr ago
Copy link
Contents
Get System Date-Time
Set System Date-Time