Return the millisecond component of a Datetime in the local time zone of the context user.
Here is an Example:
DateTime myDateTime = DateTime.now(); system.debug(myDateTime.millisecond());
Output: 579