Skip to main content

getTimeDifferenceInHours method

[String] getTimeDifferenceInHours(

  1. [[String] createdAtString]

)

Function returns the time difference in hours.

params:

  • createdAtString: the time from post

returns:

  • String: return a string

Implementation

String getTimeDifferenceInHours(String createdAtString) 
  1. talawa
  2. pinned_post
  3. PinnedPost
  4. getTimeDifferenceInHours method
PinnedPost class