Ok, thanks Sean, here it is in plain text for anyone who wants to use it.
function TimeDisplay HowMany,DisplayHow
if DisplayHow = "Duration" then
//*
if AppStarterStackSettings["default"]["Time Unit"] = "seconds" then
return
When I was very young I used to run a gadget like this on a field with styled
text:
on mouseUp
get fld 1
repeat for each char tChar in it
put numToChar(charToNum(tChar)) after accum
end repeat
put accum into fld 2
end mouseUp
But you do not have to do all that:
on mouseUp
get fld
Tom,
It is.
I would copy it into TextEdit (Plaintext), Atom or BBEdit first to strip
any formatting properly, then copy paste from there to mail. :)
It happens. Nothing to worry about and only a minor inconvenience.
Good code, though :)
Sean
On Tue, 2 Nov 2021 at 17:14, Tom Glod via use-livecode
Oh man ..I forgot about the formatting thing.
In my client it shows up formatted with color.
Does it work ok if it is pasted plain text?
On Tue, Nov 2, 2021 at 12:08 PM Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:
> On 11/2/21 8:48 AM, Craig Newman via use-livecode wrote:
On 11/2/21 8:48 AM, Craig Newman via use-livecode wrote:
Mark.
“... unless the person was born after 1 January 1970."
Check out the thread “When was the big bang?” on the forum:
https://forums.livecode.com/viewtopic.php?f=9=26619=138530=big+bang#p138530
LOL. "one bit for (the) apple."
--
And then if you want to convert to the Babalonian calendar of 360 days in a
year, well that is just right out.
Bob S
> On Nov 2, 2021, at 08:48 , Craig Newman via use-livecode
> wrote:
>
> Mark.
>
> “... unless the person was born after 1 January 1970."
>
> Check out the thread “When was
Tidy. Took 10 seconds:
--
function TimeDisplay HowMany,DisplayHow
if DisplayHow = "Duration" then
//
if AppStarterStackSettings["default"]["Time Unit"] = "seconds" then
return round(HowMany / 1000,3)
Mark.
“... unless the person was born after 1 January 1970."
Check out the thread “When was the big bang?” on the forum:
https://forums.livecode.com/viewtopic.php?f=9=26619=138530=big+bang#p138530
Craig
> On Nov 2, 2021, at 11:43 AM, Mark Wieder via use-livecode
> wrote:
>
> On 11/2/21
On 11/2/21 7:33 AM, Curry Kenworthy via use-livecode wrote:
A forum is handy for searches,
so a nice place to visit now and then.
But I wouldn't want to live there! :D
Heh. My thoughts as well.
> It would take a lot of work to reformat the OP’s code example
> into something workable in
Craig:
> This is just another great example why the Forum
> is so much better a venue than this list.
My view is exactly opposite;
I like a List s much better.
A forum is handy for searches,
so a nice place to visit now and then.
But I wouldn't want to live there! :D
> It would take a lot
Sheesh.
This is just another great example why the Forum is so much better a venue than
this list. It would take a lot of work to reformat the OP’s code example into
something workable in the SE.
Craig
> On Nov 1, 2021, at 6:29 PM, Mark Smith via use-livecode
> wrote:
>
> You want the
You want the convert command. convert 1605553200 from seconds to dateitems
gives you 2020,11,16,19,0,0,2 (lookup dateitems). convert the date && the time
to seconds gives the date/time right now = 1635805440, then do the same as step
one with that gives you 2021,11,1,22,24,0,2. Do a little
Hey Dan, I'm pretty sure this handler works. But it only does Days,
Hours,Minutes and Seconds.
I'm sure you can add to it. (human readable section)
Cheers,
Tom
--
*function* TimeDisplay HowMany,DisplayHow
*if* DisplayHow
13 matches
Mail list logo