<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Сравнение даты]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14765&amp;type=atom" />
	<updated>2019-05-09T12:41:15Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14765</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сравнение даты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134249#p134249" />
			<content type="html"><![CDATA[<p>Не знаю, что такое chr(8206). Попробуйте так:</p><div class="codebox"><pre><code>RegExMatch(neww, &quot;(\d\d)\D*(\d\d)\D*(\d{4})\D*(\d\d)\D*(\d\d)\D*(\d\d)&quot;, t)
time1 := t3 . t2 . t1 . t4 . t5 . t6
MsgBox % time1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-05-09T12:41:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134249#p134249</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сравнение даты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134237#p134237" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
neww := StrReplace(ie.document.getElementsByTagName(&quot;div&quot;)[38].getElementsByTagName(&quot;span&quot;)[0].innerText, chr(8206))
RegExMatch(neww, &quot;^(..)\.(..)\.(....)\s(..):(..):(..)$&quot;, t)
time1 := t3 . t2 . t1 . t4 . t5 . t6
MsgBox % time1
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-05-09T11:05:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134237#p134237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сравнение даты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134228#p134228" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><p>Ссылку, к сожалению не могу дать, так как это локальный ресурс. </p><div class="codebox"><pre><code>&lt;span data-bind=&quot;text: (new Date(parseInt($data.RegistrationDate.substr(6)))).toLocaleString()&quot;&gt;08.05.2019 14:35:28&lt;/span&gt;</code></pre></div><div class="codebox"><pre><code>
neww := ie.document.getElementsByTagName(&quot;div&quot;)[38].getElementsByTagName(&quot;span&quot;)[0].innerText
Clipboard := neww
</code></pre></div><p>Вот результат - &quot;08.05.2019 14:35:28&quot;</p><div class="codebox"><pre><code>
RegExMatch(neww, &quot;^(..)\.(..)\.(....)\s(..):(..):(..)$&quot;, t)
time1 := t3 . t2 . t1 . t4 . t5 . t6
MsgBox % time1
</code></pre></div><p>MsgBox выдаёт пустое окно!</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-05-09T08:27:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134228#p134228</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сравнение даты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134227#p134227" />
			<content type="html"><![CDATA[<p>Мало что понял. Сохраняйте скрипты в UTF-8 с BOM, тогда не будет вопросиков. Чтобы разобраться, что там у вас в переменной, нужна ссылка на страницу.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-05-09T08:10:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134227#p134227</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сравнение даты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134223#p134223" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><p>Timestring это переменная из &quot;ie.document.getElementsByTagName(&quot;div&quot;)[38].getElementsByTagName(&quot;span&quot;)[0].innerText&quot;, если её вставляю в блокнот, то получается &quot;08.05.2019 15:11:00&quot; и </p><div class="codebox"><pre><code>RegExMatch(Timestring, &quot;^(..)\.(..)\.(....)\s(..):(..):(..)$&quot;, t)</code></pre></div><p> по идеи должен работать, но если я вставляю переменную Timestring в SciTE4AHK, то получается &quot;?08?.?05?.?2019? ?15?:?11?:?00&quot;, но </p><div class="codebox"><pre><code>RegExMatch(Timestring, &quot;^\?(..)\?\.\?(..)\?\.\?(....)\?\s\?(..)\?:\?(..)\?:\?(..)$&quot;, t)</code></pre></div><p> не работает.</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-05-09T06:46:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134223#p134223</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сравнение даты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134135#p134135" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Спасибо большое!!</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-05-08T18:11:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134135#p134135</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сравнение даты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134132#p134132" />
			<content type="html"><![CDATA[<p>Примерно так:<br /></p><div class="codebox"><pre><code>Timestring1 := &quot;08.05.2019, 15:11:00&quot; 
Timestring2 := &quot;08.05.2019, 15:10:30&quot;
Loop 2 {
   RegExMatch(Timestring%A_Index%, &quot;^(..)\.(..)\.(....),\s(..):(..):(..)$&quot;, t)
   time%A_Index% := t3 . t2 . t1 . t4 . t5 . t6
}
time1 -= time2, s
MsgBox, % time1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2019-05-08T16:20:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134132#p134132</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Сравнение даты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=134127#p134127" />
			<content type="html"><![CDATA[<p>Добрый день! Подскажите пож-та, как сравнить две даты (формат dd.MM.yyyy, HH:mm:ss)&nbsp; , если, например, Timestring1 &gt; Timestring2&nbsp; на 30 секунд , то....&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Заранее спасибо!</p><br /><div class="codebox"><pre><code>

Timestring1 := &quot;08.05.2019, 15:11:00&quot; 

Timestring2 := &quot;08.05.2019, 15:10:30&quot; 




</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-05-08T15:42:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=134127#p134127</id>
		</entry>
</feed>
