Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Date and Time format

Date and Time format 8 years 7 months ago #6268

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
  • Karma: 0
What do you think of this diff? The idea is to allow the user to input a date and time format like the one used by strftime.
Attachments:
Last Edit: 8 years 7 months ago by beloni.
The administrator has disabled public write access.

Date and Time format 8 years 7 months ago #6272

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3048
  • Thank you received: 454
  • Karma: 125
Hi Eduardo,

I'm not so fond of the idea to use the same argument as both input and output. I prefer to continue to use the format enum and add more alternatives there.

/Claes
The administrator has disabled public write access.

Date and Time format 8 years 7 months ago #6273

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
  • Karma: 0
Hi Claes,

How about this one.
I couldn't test it yet it is a tricky one but I can assure you it compiles.

Eduardo
Attachments:
The administrator has disabled public write access.

Date and Time format 8 years 7 months ago #6281

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3048
  • Thank you received: 454
  • Karma: 125
Looks fine.

/Claes
The administrator has disabled public write access.

Date and Time format 8 years 7 months ago #6292

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
  • Karma: 0
Claes, hello

I saw you committed the %6t patch alongside the AlarmTable stuff. But it is not working for me because only the time is being presented while the date is absent.

Do you see any reason for that?

Eduardo
The administrator has disabled public write access.

Date and Time format 8 years 6 months ago #6365

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
  • Karma: 0
I've found the problem. It is in the size of the time str.
Attachments:
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.548 seconds