strange problems with SEND
matthias_livecode_150811 at m-r-d.de
matthias_livecode_150811 at m-r-d.de
Fri Jan 17 11:28:09 EST 2020
Tested here with LC 9.51 and 9.6.0DP2 and both were successfull.
I´ve extended your script, so it also checks/show the delivery time.
on mouseup
put the date into tDatum
convert tDatum from date to dateitems
add 1 to item 8 of tDatum
put 8 into item 4 of tDatum
## dateitems:
# 1. the year
# 2. the month number
# 3. the day of the month
# 4. the hour in 24-hour time
# 5. the minute
# 6. the second
# 7. the numeric day of the week where Sunday is day 1, Monday is day 2, and so forth
convert tDatum from dateitems to seconds
put tDatum - the seconds into tNeuesDatum
send "test" to me in tNeuesDatum seconds
put the pendingmessages into tpendingM
filter tPendingM with "*test*"
put item 2 of tPendingM into tDate
convert tDate from seconds to dateitems
put tDate
end mouseup
-
Matthias Rebbe
Life Is Too Short For Boring Code
> Am 17.01.2020 um 17:11 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
>
> Hi all,
>
>> Am 17.01.2020 um 16:58 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>:
>>
>> Just tested this in LC 5.02 and it worked as exspected!
>> The pendingmessages show 1579330812.096689 as "delivery" time
>> which resolves nicely to -> Saturday, January 18, 2020
>>
>> Tested also in LC 9.05 and it works as exspected, too!?
>>
>> A new bug? :-/
>
> maybe this has to do with "centurycutoff"?
> But then this problem should also be in LC 5.02 and 9.05, right?
>
>>> Am 17.01.2020 um 16:46 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
>>>
>>> HI all,
>>>
>>> I want to execute a handler in the future -> tomorrow at 8:00 AM
>>> So I scripted:
>>> ...
>>> put the date into tDatum
>>> convert tDatum from date to dateitems
>>> add 1 to item 3 of tDatum
>>> put 8 into item 4 of tDatum
>>>
>>> ## dateitems:
>>> # 1. the year
>>> # 2. the month number
>>> # 3. the day of the month
>>> # 4. the hour in 24-hour time
>>> # 5. the minute
>>> # 6. the second
>>> # 7. the numeric day of the week where Sunday is day 1, Monday is day 2, and so forth
>>>
>>> convert tDatum from dateitems to seconds
>>> put tDatum - the seconds into tNeuesDatum
>>> send "checkabfrage" to me in tNeuesDatum secs
>>> put the result into checkabfrage_id
>>> ...
>>> Looks OK in the debugger, tNeuesdatum is something like 58000, which is correct.
>>>
>>> However, when I query "the pendingmessages" this message shows up as:
>>> 39440,3158550744.943945,onlinekursinfo,stack "/xxx.livecode"
>>>
>>> But 3158550744.943945 as "delivery" time resolves (convert) to:
>>> long system date -> Sonntag, 2. Februar 2070
>>> long date -> Sunday, february 2, 2070?
>>> date -> 2/2/70
>>>
>>> Is this broken somehow or am I missing something?
>>> Any insight appreciated!
>>>
>>>
>>> Best
>>>
>>> Klaus
>>> --
>>> Klaus Major
>>> https://www.major-k.de
>>> klaus at major-k.de
>>>
>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>> --
>> Klaus Major
>> https://www.major-k.de
>> klaus at major-k.de
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> --
> Klaus Major
> https://www.major-k.de <https://www.major-k.de/>
> klaus at major-k.de <mailto:klaus at major-k.de>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode>
More information about the use-livecode
mailing list