CN110650082A - Time display method and device, computer readable medium and electronic equipment - Google Patents

Time display method and device, computer readable medium and electronic equipment Download PDF

Info

Publication number
CN110650082A
CN110650082A CN201910894204.7A CN201910894204A CN110650082A CN 110650082 A CN110650082 A CN 110650082A CN 201910894204 A CN201910894204 A CN 201910894204A CN 110650082 A CN110650082 A CN 110650082A
Authority
CN
China
Prior art keywords
client
time
time information
time difference
positioning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910894204.7A
Other languages
Chinese (zh)
Other versions
CN110650082B (en
Inventor
宋文珺
孙静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910894204.7A priority Critical patent/CN110650082B/en
Publication of CN110650082A publication Critical patent/CN110650082A/en
Application granted granted Critical
Publication of CN110650082B publication Critical patent/CN110650082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/08Annexed information, e.g. attachments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/222Monitoring or handling of messages using geographical location information, e.g. messages transmitted or received in proximity of a certain spot or area

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure provides a time display method, a time display device, a computer readable medium and electronic equipment, and relates to the technical field of communication. The time display method comprises the following steps: when a first client establishes a conversation with a second client, acquiring a first positioning of the first client and a second positioning of the second client; calculating a time difference between the first client and the second client according to the first location and the second location; and if the time difference meets a preset condition, displaying the first time information of the first client and the second time information of the second client on a dialog page. According to the technical scheme of the embodiment of the disclosure, the time information of the client is displayed, so that the effect of reminding the time difference of conversation is achieved, and the timeliness of communication is improved.

Description

Time display method and device, computer readable medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer communication technologies, and in particular, to a time display method, a time display apparatus, a computer readable medium, and an electronic device.
Background
The instant messaging has the characteristics of synchronism, timeliness, point-to-point transmission and the like, so that the information can be transmitted more quickly and rapidly, and various requirements of people in work and life are met.
When a user chats with instant messaging software, the situation that the user chats in a cross time zone different from a friend time zone often occurs. If the user chats with a friend who is abroad, the user may disturb the other party at an inappropriate time when the user does not know the situation or forgets that the user has time difference between the two parties, for example, a message or a call invitation is sent to the friend at the sleeping time or the working time of the friend. At present, in a chat message of a user, a timestamp is displayed at intervals, the timestamp is generated according to the mobile phone system time of the user, and if the user chats with a friend crossing a time zone, the user needs to remember the time difference of the region where the friend is located. However, users often forget the areas of friends, and when the areas of multiple friends are different, the time difference conversion needs to be repeated, which causes great stress on users.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The inventor finds that in the related art, when instant messaging software is used for chatting, the multi-party users in different time zones can only display the system time of the users instead of the time in the time zone of the other party, as shown in fig. 1, the users can easily ignore the time difference between the users, so that embarrassment or inconvenience is caused by various conditions such as chatting time and chatting topics, the requirement of the users on the timeliness of communication is influenced, and the chatting experience of the users is low.
It is an object of the embodiments of the present disclosure to provide a time display method, a time display apparatus, a computer readable medium and an electronic device, so as to overcome the above problems at least to some extent.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the embodiments of the present disclosure, there is provided a time display method, including:
when a first client establishes a conversation with a second client, acquiring a first positioning of the first client and a second positioning of the second client;
calculating a time difference between the first client and the second client according to the first location and the second location;
and if the time difference meets a preset condition, displaying the first time information of the first client and the second time information of the second client on a dialog page.
In an exemplary embodiment of the present disclosure, before displaying, on a dialog page, first time information of the first client and second time information of the second client if the time difference satisfies a preset condition, the method further includes:
and checking whether the first client or the second client starts the time difference reminding authority or not, and if the first client or the second client does not start the time difference reminding authority, sending an authority acquisition request to the first client or the second client.
In an exemplary embodiment of the present disclosure, before displaying, on a dialog page, first time information of the first client and second time information of the second client if the time difference satisfies a preset condition, the method includes:
determining a first reminding range corresponding to the first client according to the time difference reminding authority started by the first client;
and determining a second reminding range corresponding to the second client according to the time difference reminding authority started by the second client.
In an exemplary embodiment of the present disclosure, if the time difference satisfies a preset condition, displaying the first time information of the first client and the second time information of the second client on a dialog page includes:
if the time difference meets the first reminding range, displaying the first time information and the second time information on a conversation page of the second client;
and if the time difference meets the second reminding range, displaying the first time information and the second time information on a conversation page of the first client.
In an exemplary embodiment of the present disclosure, the displaying the first time information of the first client and the second time information of the second client on the dialog page includes:
determining a first place name corresponding to the first client according to the first positioning, and determining a second place name corresponding to the second client according to the second positioning;
displaying the first time information, the second place name and the second time information on a dialog page of the first client;
and displaying the second time information, the first place name and the first time information on a dialog page of the second client.
In an exemplary embodiment of the present disclosure, before the dialog page displays the first time information of the first client and the second time information of the second client, the method further includes:
acquiring standard time of the first positioning position as the first time information;
and acquiring the standard time of the second positioning position as the second time information.
In an exemplary embodiment of the present disclosure, the displaying the first time information of the first client and the second time information of the second client on the dialog page includes:
if the first client side is detected to send the dialogue message to the second client side, determining first time information of the dialogue message based on the first client side, and determining second time information of the dialogue message based on the second client side;
displaying the dialog message, and the first time information and the second time information of the dialog message on the dialog page.
According to a second aspect of the embodiments of the present disclosure, there is provided a time display device including:
the system comprises a positioning acquisition module, a positioning processing module and a positioning processing module, wherein the positioning acquisition module is used for acquiring a first positioning of a first client and a second positioning of a second client when a conversation is established between the first client and the second client;
a time difference calculation module, configured to calculate a time difference between the first client and the second client according to the first location and the second location;
and the time display module is used for displaying the first time information of the first client and the second time information of the second client on a conversation page if the time difference meets a preset condition.
According to a third aspect of embodiments of the present disclosure, there is provided a computer-readable medium, on which a computer program is stored, which when executed by a processor, implements the time display method as described in the first aspect of the embodiments above.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the time display method as described in the first aspect of the embodiments above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the technical solutions provided in some embodiments of the present disclosure, on one hand, the time difference between different clients is calculated by using the positioning of the client, so that the error can be reduced, and the accuracy of time difference reminding can be improved. On the other hand, the time information of each client is displayed in the conversation page, so that the time difference between friends can be more directly prompted to the user, the requirement of the user on timeliness is met, and the timeliness of time difference reminding can be improved. On the other hand, the user does not need to inform the other side of the area and the time difference of the user, and the user does not need to memorize the area and the time difference of the friend, so that the communication experience of the user can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
fig. 1 schematically shows a time display effect in the prior art.
Fig. 2 schematically shows a system architecture diagram for implementing a time display method in an embodiment according to the present disclosure.
FIG. 3 schematically shows a flow chart of a time display method according to an embodiment of the present disclosure;
fig. 4 schematically shows an application scenario diagram of a time display method according to an embodiment of the present disclosure;
fig. 5 schematically shows a display effect diagram of a time display method according to an embodiment of the present disclosure;
FIG. 6 schematically shows a flow chart of a method of time display according to another embodiment of the present disclosure;
fig. 7 schematically shows a display effect diagram of a time display method according to an embodiment of the present disclosure;
fig. 8 schematically shows a display effect diagram of time information according to an embodiment of the present disclosure;
FIG. 9 schematically illustrates an interface diagram of a time display method according to an embodiment of the disclosure;
FIG. 10 schematically illustrates another interface diagram of a time display method according to an embodiment of the disclosure;
FIG. 11 schematically illustrates yet another interface diagram of a time display method according to an embodiment of the disclosure;
fig. 12 schematically shows a block diagram of a time display device according to an embodiment of the present disclosure;
FIG. 13 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. E.g. operations of
The/steps may also be broken down and some operations/steps may be combined or partially combined, so that the order of actual execution may vary depending on the actual situation.
First, an exemplary embodiment of the present disclosure provides a system architecture for implementing a time display method or a time display apparatus. Referring to fig. 2, the system architecture 200 may include terminal devices 201, 202, 203, a network 204, and a server 205. The network 204 serves as a medium for providing communication links between the terminal devices 201, 202, 203 and the server 205. Network 204 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 201, 202, 203 to interact with the server 205 via the network 204 to receive or send request instructions or the like. The terminal devices 201, 202, 203 may have various communication client applications installed thereon, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, and the like.
The terminal devices 201, 202, 203 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 205 may be a server providing various services, such as a back-office management server (for example only) providing support for shopping-like websites browsed by users using the terminal devices 201, 202, 203. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device. For another example, a chat message sent by the user to the terminal device 202 through the terminal device 201 is received, and the chat message is sent to the terminal device 202 for the user of the terminal device 202 to view.
It should be noted that the time display method provided by the embodiment of the present disclosure is generally executed by the server 205, and accordingly, the time display device is generally disposed in the server 205. However, it is easily understood by those skilled in the art that the time display method provided by the embodiment of the present disclosure may also be executed by the terminal devices 201, 202, and 203, and accordingly, the time display device may also be disposed in the terminal devices 201, 202, and 203.
Based on the system architecture 200, the present disclosure provides a time display method. Referring to fig. 3, the time display method may include step S302, step S304, and step S306.
According to the time display method in the exemplary embodiment, on one hand, the time difference between different clients is calculated by using the positioning of the clients, so that the error can be reduced, and the accuracy of the time difference can be improved. On the other hand, the time information of each client is displayed in the conversation page, so that the time difference between friends can be prompted to the user more directly, and the timeliness of time difference reminding can be improved. On the other hand, the user does not need to inform the other side of the area and the time difference of the user, and the user does not need to memorize the area and the time difference of the friend, so that the communication experience of the user can be improved.
Hereinafter, each step of the time display method in the present exemplary embodiment is explained in detail.
In step S302, when a session is established between a first client and a second client, a first location of the first client and a second location of the second client are obtained.
The first client and the second client may be applications installed on the terminal devices 201, 202, and 203 in fig. 2, such as learning software, game software, or other software that may have an instant messaging function, and in fact, most client applications integrate an instant messaging module. The first client and the second client can be respectively installed on different terminal devices, and different users can realize communication through receiving and sending conversation messages between the clients. For example, as shown in fig. 4, users may communicate through software installed on a mobile phone, and if two users need to communicate, a session may be established between clients corresponding to the two users. Of course, a dialog may also be established between a plurality of users, for example, a group chat, that is, the client for establishing the session may include a plurality of clients.
The client may include multiple pages through which to interact with the user. In addition, the friend relationship can be established among users using different clients, so that the clients can store information of other clients, such as contact lists, friend lists, message records and the like. The clients can be distinguished through the identification information, and different clients can correspond to different identification information, for example, the identification information may be a user name or the like. When a user needs to have a conversation with other users, the client side for establishing the conversation can be determined by selecting the contact to be conversed on the page. For example, a user clicks and selects a contact through a contact list page of a first client, and then the client corresponding to the contact may be a second client, so as to establish a conversation page between the first client and the second client.
If the first client establishes a session with the second client, the positions of the first client and the second client can be obtained respectively. The positioning of the client refers to the position of the terminal equipment where the client is installed. The positioning of the client can be obtained through a global positioning system, so that the positioning of the first client can be used as a first positioning, and the positioning of the second client can be used as a second positioning. The location may include latitude and longitude coordinates, for example, the location may be (latitude 23 ° 26'22", longitude 23 ° 27' 30"), etc.; alternatively, the location name at the latitude and longitude coordinate point, such as a country, a city, or a building name, may also be included, which is not limited in this embodiment.
In step S304, a time difference between the first client and the second client is calculated according to the first location and the second location.
The time difference is the difference of standard time between two places, and the time difference between the first client and the second client can be calculated according to the time difference system. The time difference system divides the earth into 24 time zones, the time zone of the first location and the time zone of the second location can be determined, and the time difference can be calculated according to the time zones. For example, if the first location belongs to the east eight region and the second location belongs to the west five region, the difference between the first location and the second location is 13 hours, i.e., the standard time of the first location is 13 hours earlier than the standard time of the second location. For another example, if the first location belongs to the eighty-eight zone and the second location belongs to the eighty-five zone, the time difference between the first location and the second location is 3 hours, i.e., the first location is 3 hours earlier than the standard time of the second location.
In step S306, if the time difference satisfies a preset condition, displaying the first time information of the first client and the second time information of the second client on a dialog page.
The dialog page may include a page displayed on the display screen of the first terminal, and may also include a page displayed on the display screen of the second terminal. The time information may be displayed in the dialog page in any format, for example, the time information may be displayed as "2019/1/115: 56", "1 month, 1 day, 15: 30", and so on. The time information can comprise year, month, day information and time, minute and second information; names representing times, such as morning, evening, etc., may also be included; alternatively, the time information may also include a graph representing time, such as the moon, sun, etc.; the time information may include other time representations such as a week, for example, which is not limited in this embodiment.
The first time information may be time information at the first location and the second time information may be time information at the second location. The first time information and the second time information may be displayed separately at different positions on the dialog page, or may be displayed together at the same position, as shown in fig. 5, and the time information may be displayed together at a position corresponding to 501, or displayed separately at positions shown in 502 and 503. In addition, the display position may be other positions, such as the top of the dialog page, the bottom of the dialog page, and the like, which is not limited in this embodiment.
The preset condition may include a threshold, and when the time difference between the two parties exceeds the threshold, the preset condition may be determined to be satisfied; when the time difference between the two parties does not exceed the threshold, the situation that the preset condition is not met can be determined; the threshold may include 3 hours, 5 hours, 8 hours, etc., and may also include other numbers, such as 9, 13, 15, etc., which are not limited in this embodiment.
The first time information and the second time information may be displayed in different formats or styles to enable a user to distinguish. The first time information and the second time information may be distinguished by different marks or by different display patterns. For example, the first time information and the second time information may be distinguished by different colors, fonts, font sizes, font styles, etc., for example, the first time information may be displayed as blue, and the second time information may be displayed as green; alternatively, the distinction is made by a special symbol, for example, the first time information is shown in parentheses, the second time information is shown outside the parentheses, and the like. Further, the first time information and the second time information may be displayed in different formats, for example, the first time information is displayed as "16:57 pm" and the second time information is displayed as "16:00 pm on 1 st 2 month, and the like.
In some embodiments of the present disclosure, displaying the first time information and the second time information on the dialog page may be performed through step S601, step S602, and step S603, as shown in fig. 6.
Wherein:
step S601, determining a first place name corresponding to the first client according to the first positioning, and determining a second place name corresponding to the second client according to the second positioning;
step S602, displaying the first time information, the second place name, and the second time information on a dialog page of the first client;
step S603, displaying the second time information, the first place name and the first time information on a dialog page of the second client.
In step S601, the place name may be a geographical location name of a location where the terminal device is located. The place name may include a country name, a city name, a district or county name, and the like, and may also include a name of a landmark building, which is not limited in this embodiment.
And determining the place name corresponding to the client installed on the terminal equipment according to the positioning of the terminal equipment. The place name at the first location may be the first place name and the place name at the second location may be the second place name.
In step S602, the first time information, and the second place name and the second time information may be displayed in the dialog page of the first client. The user corresponding to the first client can know the place where the user is located, so that only the place name and the time of the other party can be displayed on the first client, as shown in fig. 7. Correspondingly, in step S603, only the second time information, and the first place name and the first time information may be displayed in the dialog page of the second client.
In an exemplary embodiment, the first time information may be a standard time at the first location and the second time information may be a standard time at the second location. Therefore, the time information of the client can be determined by the positioning information. For convenience of management of each country, region, one or more countries, or regions may adopt a uniform time, which may be a standard time, for example, when the standard time in china is a time zone of the eighty-th region. In addition, the first time information and the second time information can be determined by acquiring the system time of the client.
Illustratively, the first client and the second client correspond to users of two parties who have a conversation, and the client used by the user displays time information and a place name of the other party and time information of the user. Both information can be displayed at the same position, and the time information and the place name of the other party can be distinguished from the own time information by the display style, and referring to fig. 8, fig. 8 schematically shows 6 different display effects.
It is understood that in other embodiments of the present disclosure, the first time information and the second time information may be distinguished in other ways, for example, the first time information is displayed on the right of the dialog page and the second time information is displayed on the left of the dialog page; or, the first time information may be displayed above an icon of the first client, and the second time information is displayed above an icon of the second client, so as to be distinguished by icons of different clients, which also belong to the protection scope of the present disclosure.
Through the embodiment, the user can know the location of other users who have conversations with the user and the local time, so that whether the contact opposite side causes inconvenience to the opposite side or not is directly seen, the requirement of the user on the timeliness of communication is met, and the communication experience of the user is improved.
Displaying the first time information of the first client and the second time information of the second client on the dialog page may further include: if the first client side is detected to send the dialogue message to the second client side, determining first time information of the dialogue message based on the first client side, and determining second time information of the dialogue message based on the second client side; displaying the dialog message, and the first time information and the second time information of the dialog message on the dialog page.
In this embodiment, a dialog message sent and received by a client that establishes a dialog may be displayed in a dialog page. The time information may be directly displayed when the terminal device displays the dialog page, or may be displayed when the dialog message is transmitted or received. The sending time of the dialogue message can be determined based on the system time of the first client, and the sending time of the dialogue message is used as first time information to be displayed; and when the first client sends the dialog message or the second client receives the dialog message, the system time of the second client can be determined, so that the second time information is determined.
For example, after the user selects a contact in the contact list, a dialog page of the user with the contact is displayed, and the first time information and the second time information may be included in the dialog page. For another example, after the user selects a contact in the contact list, a dialog page between the user and the contact is displayed, the user may send a dialog message to the contact by operating in the dialog page, and after clicking to send the dialog message, the dialog page may display the dialog message and the first time information and the second time information when the dialog message is sent. As shown in fig. 7, the dialog page displays the dialog messages transmitted and received by the user, and displays the first time information and the second time information on top of the dialog messages.
In some embodiments, the user may be notified to obtain authorization of the user before displaying the first time information and the second time information. Specifically, whether the first client or the second client starts the time difference reminding authority is checked, and if the first client or the second client does not start the time difference reminding authority, an authority acquisition request is sent to the first client or the second client.
The time difference reminding authority can comprise a positioning authority for the client position, and after the time difference reminding authority is obtained, the positioning of the client position can be obtained; the time difference reminding authority can also comprise an authority for displaying the time of the location or the location, and after the authority is obtained, corresponding information can be displayed in a page of the client. In this embodiment, the client may include a setting page, and the user may turn on or turn off the time difference reminder right in the setting page through an interactive manner such as clicking a button, as shown in fig. 9, and turn on or turn off the time difference reminder by clicking 901. Whether the time difference reminding authority is opened or not can be judged by monitoring the click event of the page, and if the time difference reminding authority is not opened, an authority acquisition request can be sent to the client. The permission obtaining request is used for reminding the corresponding user of the reminding permission of the opening time difference. After the permission obtaining request is sent to the client, a display page of the client can be triggered, the display page can comprise a setting page and can also comprise another page, and therefore the time difference reminding permission is started through user interaction operation of the display page.
After the time difference reminding authority is started, a prompt message can be displayed to the user to prompt the user that the time difference reminding authority is started successfully, as shown in fig. 10.
In addition, the client may further include a detailed setting page, which may be used to set other information of the time difference reminder, for example, a time difference range of the time difference reminder, a user corresponding to the time difference reminder, content displayed by the time difference reminder, and the like.
Illustratively, the detail settings page may be triggered by a page as shown in FIG. 9, and after clicking 902, the detail settings page may be opened as shown in FIG. 11. In the page shown in fig. 11, the user may set a time difference reminding starting range in the detailed setting page, and start reminding if the time difference between the user and the friend exceeds the range; a display of the time difference, a display of the user's current time, a display of the geographical location, etc. may also be provided in the page.
In other embodiments of the present disclosure, the time difference reminder may further include other settings, for example, setting to display the time difference to a part of the friends, setting to display the geographic location to a part of the friends, and the like, which also belong to the protection scope of the present disclosure.
The time difference reminding range can be obtained through the time difference reminding authority. Specifically, the method comprises the following steps: determining a first reminding range corresponding to the first client according to the time difference reminding authority started by the first client; and determining a second reminding range corresponding to the second client according to the time difference reminding authority started by the second client.
The reminding ranges of the time difference of each client may be different, that is, the reminding ranges of the time difference set by different users may be different in size. The reminder range may be set on a setting page of the time difference reminder, such as 2 hours, 3 hours, 4 hours, and so on. The reminding ranges of different clients can be determined for different users, so that the time difference reminding is more targeted, and the individual requirements of the users are met.
And determining whether the time difference meets a preset condition or not according to different reminding ranges set by different users. Specifically, the method comprises the following steps: if the time difference meets the first reminding range, displaying the first time information and the second time information on a conversation page of the second client; and if the time difference meets the second reminding range, displaying the first time information and the second time information on a conversation page of the first client.
For example, if the reminder range set by the first client is 3 hours, the reminder range of the second client is 6 hours; the user corresponding to the first client wants to display the current time of the user to the other party when the time difference between the two parties is 3 hours or more than 3 hours, and the user corresponding to the second client displays the current time of the user to the other party when the time difference between the two parties is 6 hours or more.
Therefore, if the time difference between the second client terminal which has a conversation with the first client terminal and the first client terminal meets the first reminding range, the first time information of the first client terminal and the second time information of the second client terminal are displayed on the conversation page of the second client terminal. And if the time difference between the two parties meets a second reminding range of the second client, displaying second time information of the second client and the time information of the client of the other party on a conversation page of the client of the other party. If the reminding range of the user is met, the time information of the user is displayed at the client side of the other party, the time difference between the two parties can be timely prompted to the other party, different requirements of the users on time difference reminding are met, and the reminding timeliness is improved.
Further, an exemplary embodiment of the present disclosure provides a time display device, which may be used to perform the time display method of the present disclosure. As shown in fig. 12, the time display apparatus 1200 may include a positioning acquisition module 1201, a time difference calculation module 1202, and a time display module 1203. Wherein:
a positioning obtaining module 1201, configured to obtain a first positioning of a first client and a second positioning of a second client when a session is established between the first client and the second client;
a time difference calculation module 1202, configured to calculate a time difference between the first client and the second client according to the first location and the second location;
a time display module 1203, configured to display, on a dialog page, the first time information of the first client and the second time information of the second client if the time difference meets a preset condition.
In an exemplary embodiment of the present disclosure, the apparatus 1200 may further include:
a permission checking module, configured to check whether the first client or the second client turns on the time difference reminding permission, and send a permission obtaining request to the first client or the second client if the first client or the second client does not turn on the time difference reminding permission
In an exemplary embodiment of the present disclosure, the apparatus 1200 may further include:
the reminder range determination module may be configured to: determining a first reminding range corresponding to the first client according to the time difference reminding authority started by the first client; and determining a second reminding range corresponding to the second client according to the time difference reminding authority started by the second client.
In an exemplary embodiment of the present disclosure, the time display module 1203 may include:
a first display unit, configured to display the first time information and the second time information on a dialog page of the second client if the time difference satisfies the first reminding range;
and the second display unit is used for displaying the first time information and the second time information on a dialog page of the first client if the time difference meets the second reminding range.
In an exemplary embodiment of the present disclosure, the time display module 1203 may be configured to:
determining a first place name corresponding to the first client according to the first positioning, and determining a second place name corresponding to the second client according to the second positioning; displaying the first time information, the second place name and the second time information on a dialog page of the first client; and displaying the second time information, the first place name and the first time information on a dialog page of the second client.
In an exemplary embodiment of the present disclosure, the apparatus 1200 may further include:
the time determining module is used for acquiring the standard time of the first positioning position as the first time information; and acquiring the standard time of the second positioning part as the second time information.
In an exemplary embodiment of the present disclosure, the time display module 1203 may be configured to:
if the first client side is detected to send the dialogue message to the second client side, determining first time information of the dialogue message based on the first client side, and determining second time information of the dialogue message based on the second client side; displaying the dialog message, and the first time information and the second time information of the dialog message on the dialog page.
As each functional module of the time display device of the exemplary embodiment of the present disclosure corresponds to the step of the exemplary embodiment of the time display method, please refer to the embodiment of the time display method of the present disclosure for details that are not disclosed in the embodiment of the time display device of the present disclosure.
Referring now to FIG. 13, shown is a block diagram of a computer system 1300 suitable for use in implementing an electronic device of an embodiment of the present disclosure. The computer system 1300 of the electronic device shown in fig. 13 is only an example, and should not bring any limitations to the function and scope of use of the embodiments of the present disclosure.
As shown in fig. 13, the computer system 1300 includes a Central Processing Unit (CPU)1301 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)1302 or a program loaded from a storage section 1308 into a Random Access Memory (RAM) 1303. In the RAM 1303, various programs and data necessary for system operation are also stored. The CPU 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input/output (I/O) interface 1305 is also connected to bus 1304.
The following components are connected to the I/O interface 1305: an input portion 1306 including a keyboard, a mouse, and the like; an output section 1307 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1308 including a hard disk and the like; and a communication section 1309 including a network interface card such as a LAN card, a modem, or the like. The communication section 1309 performs communication processing via a network such as the internet. A drive 1310 is also connected to the I/O interface 1305 as needed. A removable medium 1311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1310 as necessary, so that a computer program read out therefrom is mounted into the storage portion 1308 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications component 1309 and/or installed from removable media 1311. The computer program executes the above-described functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 1301.
It should be noted that the computer readable media shown in the present disclosure may be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the time display method as described in the above embodiments.
For example, the electronic device may implement the following as shown in fig. 3: step S302, when a first client and a second client establish a conversation, a first positioning of the first client and a second positioning of the second client are obtained; step S304, calculating the time difference between the first client and the second client according to the first positioning and the second positioning; step S306, if the time difference meets a preset condition, displaying the first time information of the first client and the second time information of the second client on a dialog page.
As another example, the electronic device may implement the steps shown in fig. 6.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A time display method, comprising:
when a first client establishes a conversation with a second client, acquiring a first positioning of the first client and a second positioning of the second client;
calculating a time difference between the first client and the second client according to the first location and the second location;
and if the time difference meets a preset condition, displaying the first time information of the first client and the second time information of the second client on a dialog page.
2. The time display method according to claim 1, wherein if the time difference satisfies a preset condition, before displaying the first time information of the first client and the second time information of the second client on a dialog page, the method further comprises:
and checking whether the first client or the second client starts the time difference reminding authority or not, and if the first client or the second client does not start the time difference reminding authority, sending an authority acquisition request to the first client or the second client.
3. The time display method according to claim 2, wherein, before displaying the first time information of the first client and the second time information of the second client on a dialog page if the time difference satisfies a preset condition, the method comprises:
determining a first reminding range corresponding to the first client according to the time difference reminding authority started by the first client;
and determining a second reminding range corresponding to the second client according to the time difference reminding authority started by the second client.
4. The time display method according to claim 3, wherein if the time difference satisfies a preset condition, displaying the first time information of the first client and the second time information of the second client on a dialog page, comprises:
if the time difference meets the first reminding range, displaying the first time information and the second time information on a conversation page of the second client;
and if the time difference meets the second reminding range, displaying the first time information and the second time information on a conversation page of the first client.
5. The time display method according to claim 1, wherein the displaying the first time information of the first client and the second time information of the second client on the dialog page comprises:
determining a first place name corresponding to the first client according to the first positioning, and determining a second place name corresponding to the second client according to the second positioning;
displaying the first time information, the second place name and the second time information on a dialog page of the first client;
and displaying the second time information, the first place name and the first time information on a dialog page of the second client.
6. The time display method according to claim 1, further comprising, before the dialog page displays the first time information of the first client and the second time information of the second client:
acquiring standard time of the first positioning position as the first time information;
and acquiring the standard time of the second positioning position as the second time information.
7. The time display method according to claim 1, wherein the displaying the first time information of the first client and the second time information of the second client on the dialog page comprises:
if the first client side is detected to send the dialogue message to the second client side, determining first time information of the dialogue message based on the first client side, and determining second time information of the dialogue message based on the second client side;
displaying the dialog message, and the first time information and the second time information of the dialog message on the dialog page.
8. A time display device, comprising:
the system comprises a positioning acquisition module, a positioning processing module and a positioning processing module, wherein the positioning acquisition module is used for acquiring a first positioning of a first client and a second positioning of a second client when a conversation is established between the first client and the second client;
a time difference calculation module, configured to calculate a time difference between the first client and the second client according to the first location and the second location;
and the time display module is used for displaying the first time information of the first client and the second time information of the second client on a conversation page if the time difference meets a preset condition.
9. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, carries out the time display method according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out a time display method according to any one of claims 1 to 7.
CN201910894204.7A 2019-09-20 2019-09-20 Time display method and device, computer readable medium and electronic equipment Active CN110650082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910894204.7A CN110650082B (en) 2019-09-20 2019-09-20 Time display method and device, computer readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910894204.7A CN110650082B (en) 2019-09-20 2019-09-20 Time display method and device, computer readable medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110650082A true CN110650082A (en) 2020-01-03
CN110650082B CN110650082B (en) 2022-04-08

Family

ID=69010905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910894204.7A Active CN110650082B (en) 2019-09-20 2019-09-20 Time display method and device, computer readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110650082B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063843A (en) * 2021-11-22 2022-02-18 北京字跳网络技术有限公司 Interaction method, interaction device, electronic equipment, storage medium and computer program product
CN116483239A (en) * 2023-03-27 2023-07-25 北京字跳网络技术有限公司 Interaction method, device, electronic device and storage medium
WO2024179368A1 (en) * 2023-02-28 2024-09-06 北京字跳网络技术有限公司 Information processing method and apparatus, electronic device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470203A (en) * 2007-12-26 2009-07-01 英业达股份有限公司 Method for updating time
CN102368745A (en) * 2011-09-06 2012-03-07 上海量明科技发展有限公司 Method for providing time difference information in instant messaging and system thereof
US20150149561A1 (en) * 2013-11-26 2015-05-28 International Business Machines Corporation Time conversion in an instant message
CN106254211A (en) * 2016-07-30 2016-12-21 深圳市金立通信设备有限公司 The display packing of a kind of interactive information and terminal
CN108650170A (en) * 2018-05-14 2018-10-12 阿里巴巴集团控股有限公司 A kind of display methods and device of information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470203A (en) * 2007-12-26 2009-07-01 英业达股份有限公司 Method for updating time
CN102368745A (en) * 2011-09-06 2012-03-07 上海量明科技发展有限公司 Method for providing time difference information in instant messaging and system thereof
US20150149561A1 (en) * 2013-11-26 2015-05-28 International Business Machines Corporation Time conversion in an instant message
CN106254211A (en) * 2016-07-30 2016-12-21 深圳市金立通信设备有限公司 The display packing of a kind of interactive information and terminal
CN108650170A (en) * 2018-05-14 2018-10-12 阿里巴巴集团控股有限公司 A kind of display methods and device of information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063843A (en) * 2021-11-22 2022-02-18 北京字跳网络技术有限公司 Interaction method, interaction device, electronic equipment, storage medium and computer program product
WO2024179368A1 (en) * 2023-02-28 2024-09-06 北京字跳网络技术有限公司 Information processing method and apparatus, electronic device, and storage medium
CN116483239A (en) * 2023-03-27 2023-07-25 北京字跳网络技术有限公司 Interaction method, device, electronic device and storage medium

Also Published As

Publication number Publication date
CN110650082B (en) 2022-04-08

Similar Documents

Publication Publication Date Title
US10178139B2 (en) Providing event data to a group of contacts
US8140621B2 (en) Providing event data to a group of contacts
CN108494571B (en) Method, device and system for initiating a reservation meeting
US9479900B2 (en) Geographic location-based communications method, mobile terminal, server, and geographic location-based communications system
US11663540B2 (en) Ad hoc group management within a collaboration project sharing workflow
CN109005098B (en) Task reminding method and device, and reminding message generating and displaying method and device
US8428561B1 (en) Event notification and organization utilizing a communication network
US8843573B2 (en) Lightweight messaging with location between users of a social networking system
KR20130112040A (en) Content sharing interface for sharing content in social networks
US12073052B2 (en) Information display method and device, terminal and storage medium
US11281761B2 (en) Method and system for using a plurality of accounts in an instant messaging application
CN110650082B (en) Time display method and device, computer readable medium and electronic equipment
CN112395509A (en) Information display method, information providing method, apparatus, and computer-readable medium
WO2023049129A1 (en) Establishing new connections in a communication platform
US8676626B1 (en) Event notification and organization utilizing a communication network
JP5956079B2 (en) Integrated display and management of data objects based on social, temporal and spatial parameters
WO2016018734A1 (en) Instant messaging
US11349960B2 (en) Integration of client system groups
CN109120743B (en) Contact adding method and device, electronic equipment and storage medium
CN111766997A (en) Screenshot sharing method and device, storage medium and electronic equipment
CN109768910B (en) Information processing method, related device, equipment and system
CN107508745B (en) Prompting message associated input method and device and computing equipment
US20160308811A1 (en) Communication System Invite Mechanism
WO2017006316A1 (en) Systems and methods for instant messaging
CN107222608B (en) Contact person sharing method and user terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant