Giter Site home page Giter Site logo

Add timestamps about devzat HOT 11 CLOSED

quackduck avatar quackduck commented on May 14, 2024
Add timestamps

from devzat.

Comments (11)

asrp avatar asrp commented on May 14, 2024 2

Nice, that was really fast! User specified timezones looks pretty cool to me. I'd want to see seconds but I could see it working without that too.

So, in some IRC clients they have timestamps on the same line on the left. Something like

[1m in]    ishan: test
[4m in]    ishan: test 2
[4m in]    ishan: nice!
[4m in]    ishan: /tz Asia/Dubai
[10:44 am] ishan: test!

or maybe it could be distinguished from the rest in some other way

1m in
  ishan: test
4m in
  ishan: test 2
  ishan: nice!
  ishan: /tz Asia/Dubai
10:44 am
  ishan: test!

Indenting might mess up some of your other layout though, so don't know if it is worth it.

I'm happy to have timestamps though, even the way they are now.

from devzat.

quackduck avatar quackduck commented on May 14, 2024 1

Lookin good:
image

from devzat.

quackduck avatar quackduck commented on May 14, 2024

I have tried this before, lemme try implementing again, I'll let you know how it goes.

from devzat.

quackduck avatar quackduck commented on May 14, 2024

The problem with this is that we have no idea what the user's time zone is (we could try getting it with IPs but that'll be quite a hassle)
What we could do is instead display the timestamp as minutes since the user joined, would that be okay?

from devzat.

quackduck avatar quackduck commented on May 14, 2024

Or we could ask the user to add in their timezone

from devzat.

quackduck avatar quackduck commented on May 14, 2024

Implemented both!

from devzat.

quackduck avatar quackduck commented on May 14, 2024

should it show the seconds too or is that unnecessary?

from devzat.

quackduck avatar quackduck commented on May 14, 2024

I like the second idea you have! But you're right about it messing up some layouts. Is there another way we could distinguish the stamps? Maybe I could have an extra line above and below the stamps or maybe I could change the timestamp's color, what do you think?

from devzat.

quackduck avatar quackduck commented on May 14, 2024

(I think the first design (of the IRC clients) makes the stamps too intrusive and the interface less clean)

from devzat.

asrp avatar asrp commented on May 14, 2024

Yeah, I think color would work. I think an empty line above could work too. We'd need to try it to see if two lines for timestamps is too much, though I think an empty line is easier to visually distinguish than color.

from devzat.

quackduck avatar quackduck commented on May 14, 2024

tried empty lines, looked bad, now we have timestamps that take up only one line, print on the right for zero intrusive-ness and also leave one line empty between messages! absolutely perfect!

from devzat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.