Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    9
    Views
    1,416

    Re: Problem to get hour and minute

    What happens when you compile and execute that code?
    Replace the ? with good values.
  2. Replies
    9
    Views
    1,416

    Re: Problem to get hour and minute

    Try writing the code in Java SE first as it's easier to work with. When that works, copy it to the Android code.
  3. Replies
    9
    Views
    1,416

    Re: Problem to get hour and minute

    Is this what you are trying to do:
    Given a String: "11:23" you want to use today's date: (year, month and day) and that given hour and minutes with seconds = 0 to compute the milliseconds?
  4. Replies
    9
    Views
    1,416

    Re: Problem to get hour and minute

    There are classes and methods for parsing those Strings into a Date object.
    Where do the year, month and day come from?
  5. Replies
    9
    Views
    1,416

    Re: Problem to get hour and minute

    Are the milliseconds you are asking about the count of time since the beginning of the epoch? About Jan 1, 1970

    Does Android have the same classes as Java SE for parsing Strings and creating Date...
Results 1 to 5 of 5