AppleOpenSource/WebKit2-7609.3.5.1.3/UIProcess/API/glib/WebKitGeolocationManager.cpp
/**
 * webkit_geolocation_position_set_timestamp:
 * @position: a #WebKitGeolocationPosition
 * @timestamp: timestamp in seconds since the epoch, or 0 to use current time
 *
 * Set the @position timestamp. By default it's the time when the @position was created.
 *
 * Since: 2.26
 */
@position: a #WebKitGeolocationPosition
@timestamp: timestamp in seconds since the epoch, or 0 to use current time

Set the @position timestamp. By default it's the time when the @position was created.


@position : a #WebKitGeolocationPosition @timestamp : timestamp in seconds since the epoch or 0 to use current time Set the @position timestamp . By default it ' s the time when the @position was created .
void webkit_geolocation_position_set_timestamp(WebKitGeolocationPosition* position, guint64 timestamp)
{
    g_return_if_fail(position);
    position->position.timestamp = timestamp ? static_cast<double>(timestamp) : WallTime::now().secondsSinceEpoch().value();
}
void webkit_geolocation_position_set_timestamp ( WebKitGeolocationPosition * position , guint64 timestamp ) { g_return_if_fail ( position ) ; position -> position . timestamp = timestamp ? static_cast < double > ( timestamp ) : WallTime :: now ( ) . secondsSinceEpoch ( ) . value ( ) ; }
webkit_geolocation_position_set_timestamp:
 @position: a #WebKitGeolocationPosition
 @timestamp: timestamp in seconds since the epoch, or 0 to use current time
webkit_geolocation_position_set_timestamp : @position : a #WebKitGeolocationPosition @timestamp : timestamp in seconds since the epoch or 0 to use current time