Конвертация unix time

Связь между InTouch и программируемыми логическими контроллерами, компьютерами
и другими устройствами.

Конвертация unix time

Сообщение AirBus » Чт дек 08, 2011 6:35 pm

Добрый день. существует ли стандартная функция конвертации?
Заранее благодарю за ответ.
AirBus
 
Сообщения: 84
Зарегистрирован: Чт дек 08, 2011 6:30 pm

Re: Конвертация unix time

Сообщение Генератор зла » Пт дек 09, 2011 6:12 pm

UTCDateTime() Function
Returns the UTC time, the UTC date and time, or the local time zone.

Syntax
result = UTCDateTime (format)

Parameters

format
Determines what content is returned. A literal string value, message tagname, or string expression with the following possible values:
UTC_SHORT - the function returns the UTC time
UTC_LONG - the function returns the UTC date and time
UTC_LOCAL - the function returns the name of the time zone as set in the time zone settings of the local operating system
Any other values return the UTC date and time in default format (ddd mm dd hh:mm:ss yyyy).

Example(s)
At 09:24 AM Monday January 6th 2003 in the Pacific time zone, the UTCDateTime() function returns the following.
This script returns 17:24:05
UTCDateTime("UTC_SHORT")

This script returns 01/06/2003 17:24:05
UTCDateTime("UTC_LONG")

This script returns Pacific Standard Time -8:0: 1
UTCDateTime("UTC_LOCAL")

This script returns Mon Jan 06 17:24:05 2003.
UTCDateTime("Invalid")
Vita est dolor.
Генератор зла
 
Сообщения: 2860
Зарегистрирован: Вс янв 23, 2011 5:08 pm


Вернуться в Связь InTouch с ПЛК

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 24