How to Parse Timestamps from Conversation Index value? - outlook

I tried to Extract the Header Date and ChildBlock Timestamps from Conversation index value with reference to https://www.meridiandiscovery.com/how-to/e-mail-conversation-index-metadata-computer-forensics/
Example Conversation index:
AQHXpuHfZBAfN0osC0iudIJ19I04SA==
AQHXpuHfZBAfN0osC0iudIJ19I04SKued4wAgAAALkU=
But I'm not getting the Header date and ChildBlock Timestamps Value as Expected (Timestamps doesn't match with actual and differs a lot ).
Can anyone help me with this?
Thanks

Related

Filter a field with timestamp (datetime) to get rows that does not contain today's date in Django

I have a Django model with a timestamp field. I want to filter and get the number of rows that does not contain today's date. The timestamp field contains the date, time, and time zone.
I understand that to get rows with today's date, we do the following:
tablename.objects.filter(timestamp__date=date.today()).count()
Thank you.
.exclude returns the inverse of .filter, so it would be
tablename.objects.exclude(timestamp__date=date.today()).count()
Django docs

How to extract "last updated" date from this URL to google sheets

I have tried this, but I get three dots
=IMPORTXML("https://covid19.sabah.digital/covid19/","//span[#class='number-last_updated']")
When I saw the HTML data, it seems that the last updated date is displayed by Javascript. By this, unfortunately, the value cannot be directly retrieved with IMPORTXML. This has already been mentioned in the comments.
When I saw the HTML data again, I noticed that the information of date is included in https://data.covid19.sabah.digital/global.json. From this data, how about retrieving the last updated date? In this answer, as a workaround, in order to retrieve the last updated value, I would like to propose to retrieve the data using the following sample formula.
Sample formula:
=TEXT(MAX(ARRAYFORMULA(DATEVALUE(REGEXEXTRACT(QUERY(IMPORTDATA(A1),"SELECT Col1 WHERE Col1 contains 'date'"),"\d{4}-\d{1,2}-\d{1,2}"))))+1,"yyyy-MM-dd")
In this formula, please put the URL of https://data.covid19.sabah.digital/global.json to the cell "A1".
The flow of this formula is as follows.
Retrieve the JSON data using IMPORTDATA.
Retrieve the data values from the retrieved data using QUERY.
Convert the text to the serial number using DATEVALUE.
Retrieve the max value using MAX.
It seems that when this value is added by 1, it is the updated date.
If you don't need this, please remove +1 from the formula.
Convert the serial number to the text using TEXT.
Result:
References:
IMPORTDATA
QUERY
DATEVALUE
MAX
TEXT

Query on Ali baba Cloud Billing API BOA

I was trying to get some data by using one of the api call QueryInstanceBill
The resulted JSON seems to be long and there is no date column to filter on how i got those many records.
Could someone here help me out
To be able to filter by date, The billing date only used when Granularity is DAILY,format: YYYY-MM-DD. Example 2020-07-29
You can also use the "BillingCycle" field in the request:
The billing cycle. Format: YYYY-MM. Example: 2020-07
Documentation:
https://www.alibabacloud.com/help/doc-detail/100400.htm
QueryInstanceBill API returns data for billing cycle which is usually for a month (YYYY-MM)
If you want data for a particular date then in request parameter provide the value for field "BillingDate" in format: YYYY-MM-DD
and the value for field "Granularity" should be "DAILY"
Check out the documentation:
https://www.alibabacloud.com/help/doc-detail/100400.htm
Also, you can use OpenAPI Explorer, I have provided BillingCycle as "2019-10", BillingDate as "2019-10-15" and Granularity as "DAILY":
https://api.aliyun.com/#/?product=BssOpenApi&version=2017-12-14&api=QueryInstanceBill&params={%22RegionId%22:%22cn-hangzhou%22,%22Granularity%22:%22DAILY%22,%22BillingCycle%22:%222019-10%22,%22BillingDate%22:%222019-10-15%22}&tab=DEMO&lang=JAVA

Why does Stackdriver logging does not respect the advanced filter condition for timestamp?

I have selected 'No limit' then I wrote a simply filter in Logs Viewer console
timestamp>="2020-01-30T15:00:00Z" AND timestamp<="2020-01-30T16:00:00Z"
There is one log for this condition but it returned nothing in the console. When I changed the filter as follows,
timestamp>="2020-01-30T10:00:00Z" AND timestamp<="2020-01-30T16:00:00Z"
it shows me the result for timestamp>="2020-01-30T15:00:00Z" AND timestamp<="2020-01-30T16:00:00Z".
And timestamp>="2020-01-30T09:00:00Z" AND timestamp<="2020-01-30T16:00:00Z" shows result for timestamp>="2020-01-30T14:00:00Z" AND timestamp<="2020-01-30T16:00:00Z".
What am I doing wrong?
For the base of my answer, I will be using this documentation on advanced logs queries as the document shows you how to write advanced logs queries, which are the expressions that can specify a set of log entries from any number of logs.
To begin, the timestamp field type that you are using permits query value string in RFC 3339 or ISO 8601 format. In your case, you are using the RFC 3339 type.
In query expressions, timestamps in RFC 3339 format can specify a timezone with "Z" or ±hh:mm. Also, timestamps are represented to nanosecond accuracy.
More importantly, when writing a query with a timestamp, you must also select No limit from the time-range selector below the search-query box. Check image below to have a visual.
So overall, there is nothing wrong with your query search:
timestamp>="2020-01-30T15:00:00Z" AND timestamp<="2020-01-30T16:00:00Z"
Just make sure that you have the No limit selected from the time-range selector.
If that still does not work for you, then you can try writing the same query search in a different format, like this:
timestamp >= "2020-01-30T15:00:00Z" timestamp <= "2020-01-30T16:00:00Z"
I hope this helps!

Trying to return the maximum value of a filtered date column in Power BI

I have a table within Power BI that has a date field, and a value field. I am filtering on this date field, using a slicer, to sum all of the value data before the specified date. I would like to get this date value to use in a LOOKUPVALUE() elsewhere (to get a conversion rate).
Is there a way to accomplish this?
I have tried the DAX functions that return the values of a particular table/column with filters preserved but this never seems to work, and just returns the entire dataset, e.g. VALUES(), FILTERS(), ALLEXCEPT().
Any help would be greatly appreciated!
I found a solution using measures.
The DAX for future reference:
Filter Date = CALCULATE(MAX('Table'[Date]),ALLSELECTED('Table'))

Resources