<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Mikrotik.moscow [тема: Изменение формата даты MMM/DD/YYYY.]</title>
		<link>http://mikrotik.moscow</link>
		<description>Новое в теме Изменение формата даты MMM/DD/YYYY. форума RouterOS на сайте Mikrotik.moscow [mikrotik.moscow]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Mon, 03 Aug 2026 06:23:02 -0400</pubDate>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257714">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Формат YYYY-MM-DD :local date;<br />:set date ([:pick [/system clock get date] ([:find [/system clock get date] "/" ([:find [/system clock get date] "/" ] +1)] + 1) ([:find [/system clock get date] "/" ([:find [/system clock get date] "/" ] +1)] + 5)]);<br />:if ("jan"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp;:set date ($date."-01-"); <br />} else={<br /> &nbsp;:if ("feb"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp;:set date ($date."-02-"); <br /> &nbsp;} else={<br /> &nbsp; &nbsp;:if ("mar"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp;:set date ($date."-03-");<br /> &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp;:if ("apr"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-04-");<br /> &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp;:if ("may"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-05-");<br /> &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("jun"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-06-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else= {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("jul"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-07-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("aug"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-08-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("sep"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-09-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("oct"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-10-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("nov"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-11-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("dec"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-12-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-".([:pick [/system clock get date] 0 [:find [/system clock get date] "/"]])."-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp;} <br /> &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp;}<br /> &nbsp;} <br />}<br />:set date ($date.[:pick [/system clock get date] ([:find [/system clock get date] "/"] + 1) [:find [/system clock get date] "/" ([:find [/system clock get date] "/" ] +1)]);<br /># jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec<br /><br />:put $date<br /><br />Формат YYYY-MM-DD: локальная переменная date;<br />:set date ([:pick [/system clock get date] ([:find [/system clock get date] "/" ([:find [/system clock get date] "/" ] +1)] + 1) ([:find [/system clock get date] "/" ([:find [/system clock get date] "/" ] +1)] + 5)]);<br />:if ("jan"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp;:set date ($date."-01-"); <br />} else={<br /> &nbsp;:if ("feb"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp;:set date ($date."-02-"); <br /> &nbsp;} else={<br /> &nbsp; &nbsp;:if ("mar"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp;:set date ($date."-03-");<br /> &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp;:if ("apr"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-04-");<br /> &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp;:if ("may"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-05-");<br /> &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("jun"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-06-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else= {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("jul"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-07-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("aug"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-08-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("sep"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-09-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("oct"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-10-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("nov"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-11-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("dec"=[:pick [/system clock get date] 0 [:find [/system clock get date] "/"]]) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-12-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set date ($date."-".([:pick [/system clock get date] 0 [:find [/system clock get date] "/"]])."-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp;} <br /> &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp;}<br /> &nbsp;} <br />}<br />:set date ($date.[:pick [/system clock get date] ([:find [/system clock get date] "/"] + 1) [:find [/system clock get date] "/" ([:find [/system clock get date] "/" ] +1)]);<br /># jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec<br /><br />:put $date<br /><br />Формат YYYY-MM-DD: локальная переменная date;<br />Устанавливаем значение переменной date, извлекая информацию о текущей дате из системных часов.<br />Если месяц - январь, добавляем "-01-" к переменной date.<br />Иначе, проверяем, если месяц - февраль, добавляем "-02-" к переменной date.<br />Иначе, проверяем, если месяц - март, добавляем "-03-" к переменной date.<br />И так далее для всех месяцев, добавляя соответствующий номер месяца к переменной date.<br />Если ни один из месяцев не совпал, то добавляем к переменной date оставшиеся части даты и завершающий "-".<br />Устанавливаем окончательное значение переменной date, добавляя номер дня к переменной date.<br /># jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec<br />Выводим значение переменной date. <br />
			<i>27.11.2021 14:17:00, fany128.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257714</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257714</guid>
			<pubDate>Sat, 27 Nov 2021 14:17:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257713">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Спасибо, чувак, за эпичный раскоп в теме. Это реально помогло мне с FTP-скриптами, ты просто чемпион. <br />
			<i>11.10.2020 06:57:00, helipos.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257713</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257713</guid>
			<pubDate>Sun, 11 Oct 2020 06:57:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257712">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Наконец, скрипт для отправки ежедневного резервного копирования на внешний FTP-сервер с сохранением даты: /tool fetch address=ADDRESS port=PORT user=USER mode=ftp password=PASSWORD src-path=([([:pick [/system clock get date] ([:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)] + 1) ([:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)] + 5)] . “.” . [:pick [/system clock get date] 0 [:find [/system clock get date] “/”]] . “.” . [:pick [/system clock get date] ([:find [/system clock get date] “/”] + 1) [:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)]])].“.backup”) dst-path=(“/REMOTE/FTP/PATH/”.([([:pick [/system clock get date] ([:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)] + 1) ([:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)] + 5)] . “.” . [:pick [/system clock get date] 0 [:find [/system clock get date] “/”]] . “.” . [:pick [/system clock get date] ([:find [/system clock get date] “/”] + 1) [:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)]])].“.backup”)) upload=yes; <br />
			<i>14.02.2020 14:42:00, Inkhomi.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257712</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257712</guid>
			<pubDate>Fri, 14 Feb 2020 14:42:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257711">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Тебе нужно прекратить копировать и вставлять, а вместо этого подумать о том, что ты делаешь…<br />:local hostname [/system identity get name]<br />:local date [/system clock get date]<br />:local localfilename "$hostname-Backup-Daily";<br />:local remotefilename "$hostname-$date"; <br />
			<i>11.09.2023 06:52:00, rextended.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257711</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257711</guid>
			<pubDate>Mon, 11 Sep 2023 06:52:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257710">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Привет @rextended! Я использую скрипт для резервного копирования, в котором для определения имени файла используется следующее, но из-за изменения даты в 7.10 это, очевидно, не работает. Как бы ты посоветовал это исправить?<br /><br />Устанавливаю переменные Local и Remote Filename. Не меняй это, если не хочешь редактировать формат имени файла.<br /><br />По умолчанию "local file name" всегда одинаковое, чтобы избежать кучи файлов и некончающихся мест на диске. "remote file name", загружаемый на FTP, содержит дату:<br /><br />* &nbsp; local hostname [/system identity get name]<br />* &nbsp; local date ([:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6])<br />* &nbsp; local filename "$hostname-Backup-Daily"<br />* &nbsp; remote filename "$hostname-$date" <br />
			<i>11.09.2023 00:54:00, noseytable.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257710</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257710</guid>
			<pubDate>Mon, 11 Sep 2023 00:54:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257709">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Наконец-то… Если вам приходится выполнять одно и то же действие в нескольких местах одного скрипта или в нескольких разных скриптах на RouterOS, то написание функции – логичное решение. Очевидно, если эту процедуру нужно использовать всего один раз, создавать функцию из нее не имеет смысла, но если вам требуется выполнять одно и то же множество раз – например, в этом примере вам постоянно нужна точная текущая дата и время – функция будет лучше. <br />
			<i>04.10.2022 22:27:00, rextended.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257709</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257709</guid>
			<pubDate>Tue, 04 Oct 2022 22:27:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257708">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Я спрашиваю, потому что хочу узнать больше про EL DONCITO. <br />
			<i>04.10.2022 19:45:00, eldoncito2019.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257708</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257708</guid>
			<pubDate>Tue, 04 Oct 2022 19:45:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257707">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			А почему бы и нет? <br />
			<i>04.10.2022 12:22:00, rextended.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257707</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257707</guid>
			<pubDate>Tue, 04 Oct 2022 12:22:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257706">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Рекс… зачем создавать глобальную переменную, если можно сделать так: {<br /> &nbsp; &nbsp;/системные часы<br /> &nbsp; &nbsp;:local vdate [get date]<br /> &nbsp; &nbsp;:local vtime [get time]<br /> &nbsp; &nbsp;:local yyyy &nbsp;[:pick $vdate 7 11]<br /> &nbsp; &nbsp;:local M &nbsp; &nbsp; ([:find "xxanebarprayunulgoepctovecANEBARPRAYUNULGOEPCTOVEC" [:pick $vdate 1 3] -1]/2); :if ($M&gt;12) do={:set M ($M - 12)}<br /> &nbsp; &nbsp;:local MM &nbsp; &nbsp;$M; :if ($MM &lt; 10) do={:set MM "0$MM"}<br /> &nbsp; &nbsp;:local dd &nbsp; &nbsp;[:pick $vdate 4  6]<br /> &nbsp; &nbsp;:local HH &nbsp; &nbsp;[:pick $vtime 0  2]<br /> &nbsp; &nbsp;:local mm &nbsp; &nbsp;[:pick $vtime 3  5]<br /> &nbsp; &nbsp;:local ss &nbsp; &nbsp;[:pick $vtime 6  8]<br /><br /> &nbsp; &nbsp;:put "$yyyy-$MM-$dd $HH:$mm:$ss"<br />} ЭЛЬ ДОНСИТО. <br />
			<i>04.10.2022 10:10:00, eldoncito2019.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257706</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257706</guid>
			<pubDate>Tue, 04 Oct 2022 10:10:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257705">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			На полной версии можно использовать параметр "return": $yyyy — полный номер текущего года (например, 2022), $MM — номер текущего месяца с нулём (например, 01, 02, 03…10, 11, 12), $M — номер текущего месяца без нуля (например, 1, 2, 3…10, 11, 12), $MMM — короткое название месяца в верхнем регистре (JAN, FEB…NOV, DIC), $Mmm — короткое название месяца с заглавной буквы (Jan, Feb…Nov, Dic) (нестандартно), $mmm — короткое название месяца в нижнем регистре (jan, feb…nov, dic) (нестандартно), $MD — количество дней в месяце, $dd — текущее число месяца с нулём (например, 01, 02, 03…29, 30, 31), $d — текущее число месяца без нуля (например, 1, 2, 3…29, 30, 31), $YD — номер дня в году (1…365/366), $WWW — короткое название дня недели в верхнем регистре (THU, FRI, SAT, SUN, MON, TUE, WED), $Www — короткое название дня недели с заглавной буквы (Thu, Fri, Sat, Sun, Mon, Tue, Wed) (нестандартно), $www — короткое название дня недели в нижнем регистре (thu, fri, sat, sun, mon, tue, wed) (нестандартно), $WD — номер дня недели (от 1 - понедельник до 7 - воскресенье), $HH — номер часа в 24-часовом формате с нулём (например, 00, 01, 02…21, 22, 23), $H — номер часа в 24-часовом формате без нуля (например, 0, 1, 2…21, 22, 23), $hh — номер часа в 12-часовом формате с нулём (например, 01, 02, 03…10, 11, 12), $h — номер часа в 12-часовом формате без нуля (например, 1, 2, 3…10, 11, 12), $aa — символ AM/PM для 12-часового формата (например, AM или PM), $a — только первая буква символа AM/PM (например, A или P), $mm — номер минуты с нулём (например, 00, 01, 02…57, 08, 59), $m — номер минуты без нуля (например, 0, 1, 2…57, 58, 59), $ss — номер секунды с нулём (например, 00, 01, 02…57, 58, 59(,60?)), $s — номер секунды без нуля (например, 0, 1, 2…57, 58, 59(,60?)), $Z — смещение часового пояса (например, -23:59…+00:00…+23:59), $Leap — указывает, является ли текущий год високосным (Leap) или нет (No-Leap), $Unix Epoch Unix Time. Если желателен, массив Lcase, Pcase и Ucase можно локализовать, но только с использованием английских букв, в верхнем или нижнем регистре, от A до Z. <br />
			<i>03.10.2022 16:26:00, rextended.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257705</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257705</guid>
			<pubDate>Mon, 03 Oct 2022 16:26:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257704">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Что-то… попроще? Упрощенная версия: (совместимо также с новым форматом даты в RouterOS 7.10+) :global simplercurrdatetimestr do={<br /> &nbsp; &nbsp;/system clock<br /> &nbsp; &nbsp;:local vdate [get date]<br /> &nbsp; &nbsp;:local vtime [get time]<br /> &nbsp; &nbsp;:local vdoff [:toarray "0,4,5,7,8,10"]<br /> &nbsp; &nbsp;:local MM &nbsp; &nbsp;[:pick $vdate ($vdoff-&gt;2) ($vdoff-&gt;3)]<br /> &nbsp; &nbsp;:local M &nbsp; &nbsp; [:tonum $MM]<br /> &nbsp; &nbsp;:if ($vdate ~ ".../../....") do={<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set vdoff [:toarray "7,11,1,3,4,6"]<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set M &nbsp; &nbsp; ([:find "xxanebarprayunulugepctovecANEBARPRAYUNULUGEPCTOVEC" [:pick $vdate ($vdoff-&gt;2) ($vdoff-&gt;3)] -1] / 2)<br /> &nbsp; &nbsp; &nbsp; &nbsp;:if ($M&gt;12) do={:set M ($M - 12)}<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set MM &nbsp; &nbsp;[:pick (100 + $M) 1 3]<br /> &nbsp; &nbsp;}<br /> &nbsp; &nbsp;:local yyyy [:pick $vdate ($vdoff-&gt;0) ($vdoff-&gt;1)]<br /> &nbsp; &nbsp;:local dd &nbsp; [:pick $vdate ($vdoff-&gt;4) ($vdoff-&gt;5)]<br /> &nbsp; &nbsp;:local HH &nbsp; [:pick $vtime 0  2]<br /> &nbsp; &nbsp;:local mm &nbsp; [:pick $vtime 3  5]<br /> &nbsp; &nbsp;:local ss &nbsp; [:pick $vtime 6  8]<br /><br /> &nbsp; &nbsp;:return "$yyyy-$MM-$dd $HH:$mm:$ss"<br />}<br /><br />:put [$simplercurrdatetimestr] полная версия: (совместимо также с новым форматом даты в RouterOS 7.10+) :global currdatetimestr do={<br /> &nbsp; &nbsp;/system clock<br /> &nbsp; &nbsp;:local vdate [get date]<br /> &nbsp; &nbsp;:local vtime [get time]<br /> &nbsp; &nbsp;:local vgmt &nbsp;[:tonum [get gmt-offset]]; :if ($vgmt &gt; 0x7FFFFFFF) do={:set vgmt ($vgmt - 0x100000000)}<br /> &nbsp; &nbsp;:local prMntDays [:toarray "0,0,31,59,90,120,151,181,212,243,273,304,334"]<br /> &nbsp; &nbsp;:local daysOnMnt [:toarray "0,31,28,31,30,31,30,31,31,30,31,30,31"]<br /> &nbsp; &nbsp;:local LcaseMnts [:toarray "0,jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec"]<br /> &nbsp; &nbsp;:local PcaseMnts [:toarray "0,Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec"]<br /> &nbsp; &nbsp;:local UcaseMnts [:toarray "0,JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC"]<br /> &nbsp; &nbsp;:local LcaseWeekDays [:toarray "thu,fri,sat,sun,mon,tue,wed"]<br /> &nbsp; &nbsp;:local PcaseWeekDays [:toarray "Thu,Fri,Sat,Sun,Mon,Tue,Wed"]<br /> &nbsp; &nbsp;:local UcaseWeekDays [:toarray "THU,FRI,SAT,SUN,MON,TUE,WED"]<br /> &nbsp; &nbsp;:local NumbrWeekDays [:toarray "4,5,6,7,1,2,3"]<br /> &nbsp; &nbsp;:local Fzerofill do={:return [:pick (100 + $1) 1 3]}<br /> &nbsp; &nbsp;:local gmtSg "+"; :if ($vgmt &lt; 0) do={:set gmtSg "-"; :set vgmt ($vgmt * -1)}<br /> &nbsp; &nbsp;:local gmtHr [:pick [:totime $vgmt] 0 2]<br /> &nbsp; &nbsp;:local gmtMn [:pick [:totime $vgmt] 3 5]<br /> &nbsp; &nbsp;:local vdoff [:toarray "0,4,5,7,8,10"]<br /> &nbsp; &nbsp;:local MM &nbsp; &nbsp;[:pick $vdate ($vdoff-&gt;2) ($vdoff-&gt;3)]<br /> &nbsp; &nbsp;:local M &nbsp; &nbsp; [:tonum $MM]<br /> &nbsp; &nbsp;:if ($vdate ~ ".../../....") do={<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set vdoff [:toarray "7,11,1,3,4,6"]<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set M &nbsp; &nbsp; ([:find "xxanebarprayunulugepctovecANEBARPRAYUNULUGEPCTOVEC" [:pick $vdate ($vdoff-&gt;2) ($vdoff-&gt;3)] -1] / 2)<br /> &nbsp; &nbsp; &nbsp; &nbsp;:if ($M&gt;12) do={:set M ($M - 12)}<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set MM &nbsp; &nbsp;[:pick (100 + $M) 1 3]<br /> &nbsp; &nbsp;}<br /> &nbsp; &nbsp;:local yyyy [:pick $vdate ($vdoff-&gt;0) ($vdoff-&gt;1)]<br /> &nbsp; &nbsp;:local Leap "No-Leap"<br /> &nbsp; &nbsp;:if ((($yyyy - 1968) % 4) = 0) do={:set Leap "Leap"; :set ($prMntDays-&gt;1) -1; :set ($prMntDays-&gt;2) 30; :set ($daysOnMnt-&gt;2) 29}<br /> &nbsp; &nbsp;:local mmm &nbsp;($LcaseMnts-&gt;$M)<br /> &nbsp; &nbsp;:local Mmm &nbsp;($PcaseMnts-&gt;$M)<br /> &nbsp; &nbsp;:local MMM &nbsp;($UcaseMnts-&gt;$M)<br /> &nbsp; &nbsp;:local MD &nbsp; ($daysOnMnt-&gt;$M)<br /> &nbsp; &nbsp;:local dd &nbsp; [:pick $vdate ($vdoff-&gt;4) ($vdoff-&gt;5)]<br /> &nbsp; &nbsp;:local d &nbsp; &nbsp;[:tonum $dd] ; :local totd ((($yyyy - 1970) * 365) + (($yyyy - 1968) / 4) + ($prMntDays-&gt;$M) + ($d - 1))<br /> &nbsp; &nbsp;:local YD &nbsp; (($prMntDays-&gt;$M) + $d)<br /> &nbsp; &nbsp;:local www &nbsp;($LcaseWeekDays-&gt;($totd % 7))<br /> &nbsp; &nbsp;:local Www &nbsp;($PcaseWeekDays-&gt;($totd % 7))<br /> &nbsp; &nbsp;:local WWW &nbsp;($UcaseWeekDays-&gt;($totd % 7))<br /> &nbsp; &nbsp;:local WD &nbsp; ($NumbrWeekDays-&gt;($totd % 7))<br /> &nbsp; &nbsp;:local HH &nbsp; [:pick $vtime 0  2]<br /> &nbsp; &nbsp;:local H &nbsp; &nbsp;[:tonum $HH]<br /> &nbsp; &nbsp;:local hh &nbsp; ([:tonum $HH] % 12); :if ($hh = 0) do={:set hh 12}; :set hh [$Fzerofill $hh]<br /> &nbsp; &nbsp;:local h &nbsp; &nbsp;[:tonum $hh]<br /> &nbsp; &nbsp;:local a &nbsp; &nbsp;"A"; :if ([:tonum $HH] &gt; 11) do={:set a "P"}<br /> &nbsp; &nbsp;:local aa &nbsp; "$a\4D"<br /> &nbsp; &nbsp;:local mm &nbsp; [:pick $vtime 3  5]<br /> &nbsp; &nbsp;:local m &nbsp; &nbsp;[:tonum $mm]<br /> &nbsp; &nbsp;:local ss &nbsp; [:pick $vtime 6  8]<br /> &nbsp; &nbsp;:local s &nbsp; &nbsp;[:tonum $ss]<br /> &nbsp; &nbsp;:local Z &nbsp; &nbsp;"$gmtSg$gmtHr:$gmtMn"<br /> &nbsp; &nbsp;:local Unix (((((($totd * 24) + $H) * 60) + $m) * 60) + $s - $vgmt)<br /> &nbsp; &nbsp;:return "$yyyy-$MM-$dd\54$HH:$mm:$ss$Z $Www (YD: $YD) (MD: $MD) (WD: $WD) $Leap $Unix"<br />}<br /><br />:put [$currdatetimestr] <br />
			<i>03.10.2022 13:03:00, rextended.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257704</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257704</guid>
			<pubDate>Mon, 03 Oct 2022 13:03:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257703">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Взял это и превратил в функцию, которую можно вызывать из любого скрипта на моей MT, если скрипт для создания функции выполняется при загрузке. #создание метки времени в формате ГГГГ-ММ-ДД ЧЧ<br /># :global timestamp<br />#: local mytimevariable<br />#использование: &nbsp;:set mytimevariable [$timestamp]<br /><br />:global timestamp do={<br /><br />:local currtime [/system clock get time]<br />:local currdate [/system clock get date]<br />:local curryr &nbsp;([:pick $currdate ([:find $currdate "/" ([:find $currdate "/" ] +1)] + 1) ([:find $currdate "/" ([:find $currdate "/" ] +1)] + 5)])<br />:local currmo ([:pick $currdate 0 [:find $currdate "/"]])<br />:local currday ([:pick $currdate ([:find $currdate "/"] + 1) [:find $currdate "/" ([:find $currdate "/" ] +1)]])<br />:local currhr &nbsp;([:pick $currtime 0 ([:find $currtime ":"])]) <br />:local currmin ([:pick $currtime ([:find $currtime ":"] + 1) [:find $currtime ":" ([:find $currtime ":" ] +1)]])<br />:local currsec ([:pick $currtime ([:find $currtime ":" ([:find $currtime ":" ] +1)] + 1) ([:find $currtime ":" ([:find $currtime ":" ] +1)] + 5)])<br />:local datevar<br />:local month<br /><br />:if ("jan"=$currmo) do={<br /> &nbsp;:set month ($month."-01-"); <br />} else={<br /> &nbsp;:if ("feb"=$currmo) do={<br /> &nbsp; &nbsp;:set month ($month."-02-"); <br /> &nbsp;} else={<br /> &nbsp; &nbsp;:if ("mar"=$currmo) do={<br /> &nbsp; &nbsp; &nbsp;:set month ($month."-03-");<br /> &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp;:if ("apr"=$currmo) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set month ($month."-04-");<br /> &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp;:if ("may"=$currmo) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set month ($month."-05-");<br /> &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("jun"=$currmo) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set month ($month."-06-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else= {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("jul"=$currmo) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set month ($month."-07-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("aug"=$currmo) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set month ($month."-08-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("sep"=$currmo) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set month ($month."-09-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("oct"=$currmo) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set month ($month."-10-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("nov"=$currmo) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set month ($month."-11-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:if ("dec"=$currmo) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set month ($month."-12-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set month ($month."-".($currmo)."-");<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp;} <br /> &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp;}<br /> &nbsp;} <br />}<br /><br />:set datevar ($curryr.$month.$currday." ".$currhr); #формат ГГГГ-ММ-ДД ЧЧ<br />#:set datevar ($curryr.$month.$currday." ".$currhr.":".$currmin.":".$currsec); #формат ГГГГ-ММ-ДД ЧЧ:ММ:СС<br />:return { $datevar };<br />} <br />
			<i>02.10.2022 22:20:00, texmeshtexas.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257703</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257703</guid>
			<pubDate>Sun, 02 Oct 2022 22:20:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257702">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Месяц.Число.Год: :put [([:pick [/system clock get date] ([:find [/system clock get date] “/”] + 1) [:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)]] . “.” . [:pick [/system clock get date] 0 [:find [/system clock get date] “/”]] . “.” . [:pick [/system clock get date] ([:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)] + 1) ([:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)] + 5)])] День.Месяц.Год: :put [([:pick [/system clock get date] ([:find [/system clock get date] “/”] + 1) [:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)]] . “.” . [:pick [/system clock get date] 0 [:find [/system clock get date] “/”]] . “.” . [:pick [/system clock get date] ([:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)] + 1) ([:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)] + 5)])] Год Месяц День: :put [([:pick [/system clock get date] ([:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)] + 1) ([:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)] + 5)] . “.” . [:pick [/system clock get date] 0 [:find [/system clock get date] “/”]] . “.” . [:pick [/system clock get date] ([:find [/system clock get date] “/”] + 1) [:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)]])] Запустить скрипт с именем YearMonthDay.backup: /system backup save name=([([:pick [/system clock get date] ([:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)] + 1) ([:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)] + 5)] . “.” . [:pick [/system clock get date] 0 [:find [/system clock get date] “/”]] . “.” . [:pick [/system clock get date] ([:find [/system clock get date] “/”] + 1) [:find [/system clock get date] “/” ([:find [/system clock get date] “/” ] +1)]])].backup) <br />
			<i>10.02.2020 15:38:00, Inkhomi.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257702</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257702</guid>
			<pubDate>Mon, 10 Feb 2020 15:38:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257701">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Это вопрос? RouterOS 2.9.2 – это стандартная форма, оказывается! <br />
			<i>09.03.2006 08:59:00, the263.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257701</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257701</guid>
			<pubDate>Thu, 09 Mar 2006 08:59:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257700">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Привет! Кажется, в 2.8 у меня нет команды ICE с названием :pick. Я решил проблему так:<br />backup_start: /system backup save /system script run [/system script find name=backup_proceed]<br />backup_proceed: :delay 10s :global nazwa :set nazwa ([/file get [/file find type=backup] name]) :global backup :set backup ([/system identity get name] . “_” . $nazwa) /file remove [/file find type=backup] /system backup save name=($backup) /system script run [/system script find name=backup_mail]<br />backup_mail: :delay 10s /tool e-mail send from=([/system identity get name] . “@.mydomain”) to=“michalp@mydomain” subject=($backup) file=([/file find type=backup]) /file remove [/file find type=backup] /system script run [/system script find name=backup_clear]<br />backup_clear: :unset backup :unset nazwa<br />И это работает:))))<br />С уважением,<br />Михал Подольский <br />
			<i>13.02.2006 16:46:00, Michal.Podoski.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257700</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257700</guid>
			<pubDate>Mon, 13 Feb 2006 16:46:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257699">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Ты можешь попробовать это: :local d [/system clock get date] :local p1 [:find $d “/”] :local p2 [:find $d “/” $p1+1] :local mydate ([:pick $d 0 $p1] . “.” . [:pick $d ($p1 + 1) $p2] . “.” . [:pick $d ($p2 + 1) ($p2 + 5)]) :put $mydate Если ты используешь скрипт для бэкапа, то можешь добавить это туда и использовать переменную mydate по необходимости. Можно и всё это запихнуть в одну команду, не используя переменные, но если разбираться по шагам с переменными, то будет понятнее, как это работает. Sam <br />
			<i>12.02.2006 23:39:00, changeip.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257699</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257699</guid>
			<pubDate>Sun, 12 Feb 2006 23:39:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Изменение формата даты MMM/DD/YYYY.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257698">Изменение формата даты MMM/DD/YYYY.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Привет! У меня проблема. Я создаю автоматизированную систему резервного копирования, и мне нужно сохранять файлы, прикрепленные к электронным письмам. И было бы неплохо, если бы роутер мог называть файлы в формате: entity/дата/время. Проблема возникает при добавлении в имя резервной копии [/system clock get date] - из-за слешей "/". Может, кто-нибудь подскажет, как изменить формат даты на MMMDDYYYY? Можно ли это сделать с помощью регулярных выражений, но я не могу найти, поддерживает ли RouterOS их. Спасибо за любую помощь. С уважением, Михал Подольски. <br />
			<i>12.02.2006 19:42:00, Michal.Podoski.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257698</link>
			<guid>http://mikrotik.moscow/forum/forum57/66310-izmenenie-formata-daty-mmm_dd_yyyy./message257698</guid>
			<pubDate>Sun, 12 Feb 2006 19:42:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
	</channel>
</rss>
