<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Узнать интервал времени между А и В в секундах]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12619</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12619&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Узнать интервал времени между А и В в секундах».]]></description>
		<lastBuildDate>Sat, 15 Apr 2017 14:59:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Узнать интервал времени между А и В в секундах]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115079#p115079</link>
			<description><![CDATA[<p>Я просто показал принцип, что нужно отнять переменные или функции, чтобы узнать интервал времени. А вы хотя бы точки поставили бы в конце предложений: </p><div class="codebox"><pre><code>var1 = 2005:01:26:13:20:20
var2 = 2005:01:26:13:19:10

StringReplace, var3, var1, :,, All
StringReplace, var4, var2, :,, All

EnvSub, var3, var4, S
MsgBox, %var3%</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Sat, 15 Apr 2017 14:59:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115079#p115079</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Узнать интервал времени между А и В в секундах]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115077#p115077</link>
			<description><![CDATA[<p><strong>svoboden</strong><br />Работать как должно не будет, т.к. нет условия: <span style="color: red">Формат времени: ЧЧ:ММ:СС</span></p><p><strong>KusochekDobra</strong><br />Спасибо! Это работает<span style="color: red"><span class="bbu"><strong>.</strong></span></span> <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><div class="quotebox"><blockquote><p><span style="color: green"><strong>Модератор</strong>: Замечание за оверквотинг! Удалено. </span></p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (Akatosh)]]></author>
			<pubDate>Sat, 15 Apr 2017 14:26:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115077#p115077</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Узнать интервал времени между А и В в секундах]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115074#p115074</link>
			<description><![CDATA[<p>Скорее уж так:<br /></p><div class="codebox"><pre><code>
input1 := &quot;16:59:00&quot;
input2 := &quot;17:01:00&quot;
MsgBox,, Title, % GetSec(input2) - GetSec(input1)

GetSec(str) {
	strArr:=StrSplit(str,&quot;:&quot;)
	return strArr[1]*3600 + strArr[2]*60 + strArr[3]
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (KusochekDobra)]]></author>
			<pubDate>Sat, 15 Apr 2017 11:27:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115074#p115074</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Узнать интервал времени между А и В в секундах]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115073#p115073</link>
			<description><![CDATA[<div class="codebox"><pre><code>input1 :=  30
input2 :=  15

MsgBox % input1 - input2</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (svoboden)]]></author>
			<pubDate>Sat, 15 Apr 2017 10:57:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115073#p115073</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Узнать интервал времени между А и В в секундах]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115069#p115069</link>
			<description><![CDATA[<p>Формат времени: ЧЧ:ММ:СС</p><p>Необходимо узнать интервал в секундах между input1 и input2.</p><p>Примеры:</p><div class="codebox"><pre><code>input1 = 16:30:15
input2 = 16:30:50
output = 35

input1 = 16:30:15
input2 = 16:31:15
output = 60

input1 = 16:59:00
input2 = 17:01:00
output = 120
</code></pre></div><p>Есть ли какой-нибудь короткий способ?</p>]]></description>
			<author><![CDATA[null@example.com (Akatosh)]]></author>
			<pubDate>Sat, 15 Apr 2017 10:00:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115069#p115069</guid>
		</item>
	</channel>
</rss>
