Author Topic: Option to change the date format of the logs  (Read 2224 times)

0 Members and 1 Guest are viewing this topic.

Offline pR0Ps

  • Member
  • ***
  • Posts: 27
  • Karma: +0/-2
Option to change the date format of the logs
« on: 27 April, 2010, 22:08:07 »
The option to change the date format of the logs would be very useful. Typically users don't really care about when something happened, only in what order and if they really care about the time, they won't mid taking the extra second to look at it and figure out the month, AM/PM, etc. Plus, its a lot more complicated to have a computer work with something like "[April 21 2010 10:15 PM]" rather than "[2010-04-21-22:15]".

Thanks

pR0Ps

PtokaX forum

Option to change the date format of the logs
« on: 27 April, 2010, 22:08:07 »

Offline pR0Ps

  • Member
  • ***
  • Posts: 27
  • Karma: +0/-2
Re: Option to change the date format of the logs
« Reply #1 on: 28 April, 2010, 01:50:32 »
American Idiot:
Too right, my personal preference would be if there was some kind of way to change the way to change the date to something more compact and easier (for me) to work with. Getting the month and converting it straight to an integer instead of getting the month then looking it up in a table or using a lot of if statements seems a lot less complicated to me, which is why I am requesting the option.

Offline pR0Ps

  • Member
  • ***
  • Posts: 27
  • Karma: +0/-2
Re: Option to change the date format of the logs
« Reply #2 on: 28 April, 2010, 03:27:41 »
American Idiot:
......I'm not saying its harder for the computer to work with, I'm saying it's harder for ME to code for, and I'm assuming for others as well. I'm not trying to argue with you, I'm simply making what I think is a valid feature request in the feature request board. Also, when I said "the computer", I simply meant the script I'm coding on the computer that analyzes the log time. Would you not agree that a number would be easier to sort by than a string, which you have to use a table to convert into a number, then sort?

Offline pR0Ps

  • Member
  • ***
  • Posts: 27
  • Karma: +0/-2
Re: Option to change the date format of the logs
« Reply #3 on: 28 April, 2010, 03:52:36 »
American Idiot: The challenge has been embraced and the script is already done. This request is so that future scripters will have the option for an easier format to parse.

Offline pR0Ps

  • Member
  • ***
  • Posts: 27
  • Karma: +0/-2
Re: Option to change the date format of the logs
« Reply #4 on: 28 April, 2010, 04:27:04 »
That the person who makes DiTBoT loves them and want to make their life easier. Isn't that the goal of DiXBoT? To make running a hub more pick-up-and-play and add lots of features with little or not work on their part? Its not a huge deal, just I myself would never dream of storing a date using anything but numbers. Its easier to store, more memory efficient, easier to read in, and easier to calculate with. The only thing it is not good for is humans reading it. Therefore it would only make sense to store the date as numbers, then when it needs to be accessed and displayed to humans, spit out the more readable version. You'll never catch big software companies using anything but numbers to store a date, why should DiXBot?

PtokaX forum

Re: Option to change the date format of the logs
« Reply #4 on: 28 April, 2010, 04:27:04 »