Search found 1115 matches

by cogier
Friday 26th April 2024 2:41pm
Forum: General
Topic: Converting UTC time
Replies: 6
Views: 68

Re: Converting UTC time

I'm reading info from a file and get date and time information on the form "YYYY-MM-DD"T"HH:MM:SS"Z (an example: 2024-04-27T09:25:00Z).
What does this date refer to? It looks like it's the file date. What time zones are involved?
by cogier
Thursday 25th April 2024 2:57pm
Forum: Beginners
Topic: Anyone using dot notation with strings?
Replies: 4
Views: 1330

Re: Anyone using dot notation with strings?

But if I start typing .Len, then no such warning is shown on the help screen (https://gambaswiki.org/wiki/comp/gb/_boxedstring/len).
I have added the same warning to the Wiki. This should show up in a day or 2.
by cogier
Tuesday 16th April 2024 2:23pm
Forum: Lounge
Topic: ChatGPT: something to play with over Christmas
Replies: 11
Views: 22595

Re: ChatGPT: something to play with over Christmas

It was a simple request to see if Bing could create Gambas code. I asked for Gambas code to display ASCII characters.
by cogier
Sunday 14th April 2024 10:17am
Forum: Lounge
Topic: Playground is broken
Replies: 8
Views: 2501

Re: Playground is broken

OK. I have fixed it again. I'm going to have to do something with it to stop it breaking all the time.
by cogier
Wednesday 3rd April 2024 2:10pm
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 2930

Re: [Solved - sort of] Get the Previous Sunday from a Date

Like a dog with a bone ... I can't let go until I have finished it :lol: Dim iDay As Integer = WeekDay(Now) If iDay = 6 Then iDay = -1 ' Move sat to begining of week Print Date(DateAdd(Now, gb.Day, -(iDay + 1) - gb.Week)) Woof! Woof! Sorry, but it returns the wrong Sunday. Using today's date, it re...
by cogier
Sunday 31st March 2024 11:31am
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 2930

Re: [Solved - sort of] Get the Previous Sunday from a Date

That works for me.
by cogier
Saturday 30th March 2024 4:55pm
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 2930

Re: [Solved - sort of] Get the Previous Sunday from a Date

I may be wrong .. but this seems to get the previous sunday. Print DateAdd(Now, gb.Day, -(WeekDay(Now) + 7)) This doesn't quite get it right. Using the following code I get the Sunday before last Sunday! Print Now Print DateAdd(Now, gb.Day, -(WeekDay(Now) + 7)) Result:- 30/03/2024 16:51:29 17/03/20...
by cogier
Saturday 30th March 2024 1:34pm
Forum: Lounge
Topic: Playground is broken
Replies: 8
Views: 2501

Re: Playground is broken

The playground is in a Digital Ocean Droplet. This is basically a headless Ubuntu distro with Gambas installed via the ppa. So yes, they link to Gambas One. The main page does have a link to the Playground and the Farm. https://wordpress.gambas.one/
by cogier
Saturday 30th March 2024 8:48am
Forum: Lounge
Topic: Playground is broken
Replies: 8
Views: 2501

Re: Playground is broken

It's not the Development Team that needs to look at this, it's me. I will sort it as.soon as I can.

10:10am 30/03/2024
Now fixed

https://gambas.one/playground/
by cogier
Friday 22nd March 2024 4:04pm
Forum: Beginners
Topic: Fileview sort the elements by date
Replies: 5
Views: 1804

Re: Fileview sort the elements by date

I can't see a way to do this using FileView, but you might consider creating your own file display to do this. Have a look at attached, there is a lot more you could do with it, but I hope it's a start.
ShowPreview_Sort-0.0.1.tar.gz
(8.93 KiB) Downloaded 338 times