Python Forum
Unable to pass date timestamp as Parameters :
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to pass date timestamp as Parameters :
#1
Hi Team ,

Need small help .. I just want to pass time stamps for end and start . How can I do this in below code
could you please help me with this

For example
Start as todays morning 09:15 AM
and end as current time stamp

tech_list = ['AAPL','GOOG','MSFT','AMZN']
end = datetime.now()
start = datetime(end.year - 1,end.month,end.day)
for stock in tech_list:   
    # Set DataFrame as the Stock Ticker
    globals()[stock] = DataReader(stock,'yahoo',start,end)
Reply


Messages In This Thread
Unable to pass date timestamp as Parameters : - by nagu4651 - Jun-22-2020, 10:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare current date on calendar with date format file name Fioravanti 1 465 Mar-26-2024, 08:23 AM
Last Post: Pedroski55
  Python date format changes to date & time 1418 4 901 Jan-20-2024, 04:45 AM
Last Post: 1418
  How to pass encrypted pass to pyodbc script tester_V 0 1,005 Jul-27-2023, 12:40 AM
Last Post: tester_V
  [SOLVED] Alternative to regex to extract date from whole timestamp? Winfried 6 2,073 Nov-16-2022, 01:49 PM
Last Post: carecavoador
  Unable to Loop Over Date gdbengo 2 1,413 Jan-09-2022, 05:11 PM
Last Post: menator01
  Date format and past date check function Turtle 5 4,704 Oct-22-2021, 09:45 PM
Last Post: deanhystad
  How to add previous date infront of every unique customer id's invoice date ur_enegmatic 1 2,350 Feb-06-2021, 10:48 PM
Last Post: eddywinch82
  Pass by object reference when does it behave like pass by value or reference? mczarnek 2 2,693 Sep-07-2020, 08:02 AM
Last Post: perfringo
  How to add date and years(integer) to get a date NG0824 4 3,053 Sep-03-2020, 02:25 PM
Last Post: NG0824
  Pass integers to datetime.date function florian 3 2,864 Jul-18-2020, 04:43 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020