<?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=12619&amp;type=atom" />
	<updated>2017-04-15T14:59:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12619</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Узнать интервал времени между А и В в секундах]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115079#p115079" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-04-15T14:59:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115079#p115079</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Узнать интервал времени между А и В в секундах]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115077#p115077" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Akatosh]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34027</uri>
			</author>
			<updated>2017-04-15T14:26:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115077#p115077</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Узнать интервал времени между А и В в секундах]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115074#p115074" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[KusochekDobra]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33846</uri>
			</author>
			<updated>2017-04-15T11:27:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115074#p115074</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Узнать интервал времени между А и В в секундах]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115073#p115073" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>input1 :=  30
input2 :=  15

MsgBox % input1 - input2</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-04-15T10:57:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115073#p115073</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Узнать интервал времени между А и В в секундах]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115069#p115069" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Akatosh]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34027</uri>
			</author>
			<updated>2017-04-15T10:00:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115069#p115069</id>
		</entry>
</feed>
