Skip to main content
Ctrl+K

pystare documentation

Site Navigation

  • Readme
  • Reference
  • Examples

Site Navigation

  • Readme
  • Reference
  • Examples

Section Navigation

  • spatial
    • adapt_resolution_to_proximity
    • cmp_spatial
    • cover_from_hull
    • cover_from_ring
    • expand_intervals
    • from_intervals
    • from_latlon
    • from_latlon_2d
    • from_lonlat
    • hex2int
    • int2bin
    • int2hex
    • intersect
    • intersection
    • intersects
    • latlon2circular_cover
    • lon_wrap_180
    • sid2circular_cover
    • spatial_clear_to_resolution
    • spatial_coerce_resolution
    • spatial_increment_from_level
    • spatial_resolution
    • spatial_resolution_from_km
    • spatial_scale_km
    • spatial_terminator
    • spatial_terminator_mask
    • speedy_subset
    • to_area
    • to_box_cover_from_latlon
    • to_compressed_range
    • to_hull_range
    • to_hull_range_from_latlon
    • to_latlon
    • to_latlonlevel
    • to_level
    • to_neighbors
    • to_nonconvex_hull_range_from_latlon
    • to_vertices_latlon
    • triangulate
    • triangulate_indices
  • temporal
    • pystare.temporal.from_ms_since_epoch_utc
    • pystare.temporal.to_ms_since_epoch_utc
    • pystare.temporal.from_iso_strings
    • pystare.temporal.from_stare_timestrings
    • pystare.temporal.to_stare_timestring
    • pystare.temporal.from_julian_date
    • pystare.temporal.to_julian_date
    • pystare.temporal.to_temporal_triple_ms
    • pystare.temporal.from_temporal_triple
    • pystare.temporal.analyze_iso8601_string
    • pystare.temporal.validate_iso8601_string
    • pystare.temporal.validate_iso8601_strings
    • pystare.temporal.validate_stare_timestring
    • pystare.temporal.validate_stare_timestrings
    • pystare.temporal.force_3ms
    • pystare.temporal.iso_to_stare_timestrings
    • pystare.temporal.coarsest_resolution_finer_or_equal_ms
    • pystare.temporal.milliseconds_at_resolution
    • pystare.temporal.set_reverse_resolution
    • pystare.temporal.set_forward_resolution
    • pystare.temporal.reverse_resolution
    • pystare.temporal.forward_resolution
    • pystare.temporal.coarsen
    • pystare.temporal.cmp_temporal
    • pystare.temporal.temporal_value_intersection_if_overlap
    • pystare.temporal.temporal_value_union_if_overlap
    • pystare.temporal.temporal_contains_instant
    • pystare.temporal.from_utc_variable
    • pystare.temporal.now
  • temporal_alphabetical
    • adapt_resolutions_shape
    • analyze_iso8601_string
    • bitmask
    • cmp_temporal
    • coarsen
    • coarsest_resolution_finer_or_equal_ms
    • expanded_tiv
    • expanded_tiv_to_string
    • force_3ms
    • format_expanded_tiv
    • format_tiv
    • format_tpod
    • forward_resolution
    • from_iso_strings
    • from_julian_date
    • from_ms_since_epoch_utc
    • from_stare_timestrings
    • from_temporal_triple
    • from_utc_variable
    • hex16
    • iso_to_stare_timestrings
    • lower_bound_ms
    • lower_bound_tai
    • make_tpod_tuple
    • milliseconds_at_resolution
    • now
    • parse_formatted_tpod
    • pods_in_query
    • reverse_resolution
    • set_forward_resolution
    • set_reverse_resolution
    • set_temporal_resolutions_from_sorted
    • temporal_contains_instant
    • temporal_overlap
    • temporal_overlap_tai
    • temporal_value_intersection_if_overlap
    • temporal_value_union_if_overlap
    • tiv_from_datetime
    • tiv_from_datetime2
    • tiv_from_string
    • tiv_from_string2
    • tiv_from_tiv2
    • tiv_utc_to_string
    • to_julian_date
    • to_ms_since_epoch_utc
    • to_stare_timestring
    • to_temporal_triple_ms
    • to_temporal_triple_tai
    • tpod_terminator
    • upper_bound_ms
    • upper_bound_tai
    • validate_iso8601_string
    • validate_iso8601_strings
    • validate_stare_timestring
    • validate_stare_timestrings
  • API Reference
  • pystare.temporal
  • now

now#

now(forward_resolution=48, reverse_resolution=48)#

Get a tiv representing current point in time.

Parameters:
forward_resolution: int. Valid range is 0..48

The forward resolution (c.f coarsest_resolution_finer_or_equal_ms())

reverse_resolution: int. Valid range is 0..48

The reverse resolution (c.f. coarsest_resolution_finer_or_equal_ms()

Examples

>>> import pystare
>>> now = pystare.now()

previous

milliseconds_at_resolution

next

parse_formatted_tpod

On this page
  • now()
Show Source

© Copyright 2021, Niklas Griessbaum.

Created using Sphinx 7.1.2.

Built with the PyData Sphinx Theme 0.14.1.