Date and time
gbojsza at gmail.com
Thu Jun 6 18:22:27 EDT 2019
Well done...not over done.
I hope you’re out from under your desk.
On Thu, Jun 6, 2019 at 6:18 PM dunbarxx via use-livecode <
use-livecode at lists.runrev.com> wrote:
> Feel like I am overdoing this, but a bit more compact:
> on mouseUp
> put "06-Jun-2019;09:05:21" into rawTime -- your formatted moment here
> set the itemDel to "-"
> put item 1 of rawTime into tDay
> put itemOffset(item 2 of
> rawTime,"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec") into tMonth
> put item 3 of rawTime into temp
> set the itemDel to ";"
> put item 1 of temp into tYear
> delete item 1 of temp
> set the itemDel to ":"
> put item 1 of temp into tHour
> put item 2 of temp into tMinutes
> put item 3 of temp into tSeconds
> put tYear & "," & tMonth & "," & tDay & "," & tHour & "," & tMinutes &
> "," & tSeconds & "," & tDay into standardFormat
> convert standardFormat from dateItems to seconds
> answer standardFormat
> end mouseUp
> Brute force for sure. My favorite.
> Sent from:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode